You can foreach
to loop through all item and call in the array like:
foreach($yourArray as $item) {
echo $item->label;
echo $item->file;
}
Or you can be using json_decode
to cast your object to the array.
$result = json_decode($data, true);
2
solved How to echo values from this array? [duplicate]