Código PHP:
Array (
[0] => stdClass Object (
[elements] =>
[9285f221-05b2-4cf1-8063-08b13f0c0104] => stdClass Object (
[0] => stdClass Object (
[file] => /imagenes/1.jpg
[width] => 570
[height] => 32
Código PHP:
foreach ($mi_array as $objeto) {
if ($objeto->elements) {
$elements_en_array = json_decode($objeto->elements);
foreach ($elements_en_array as $key1 => $value1) {
if ($key1 == "9285f221-05b2-4cf1-8063-08b13f0c0104") {
foreach ($value1 as $value2) {
echo $value2->file;
break(2);
}
}
}
}
}
Código PHP:
foreach ($mi_array as $objeto) {
if ($objeto->elements) {
$elements_en_array = json_decode($objeto->elements);
foreach ($elements_en_array as $key1 => $value1) {
echo $key1["9285f221-05b2-4cf1-8063-08b13f0c0104"]->$value1->file;
}
}
}
¿Me ayudan un poco?
Saludos