try this:
foreach($car->image->children() as $photourl){
echo "Key: " . $photourl->getName() . "<br>";
echo "Value: " . trim((string)$photourl) . "<br>";
}
0
solved PHP foreach notworking [closed]
try this:
foreach($car->image->children() as $photourl){
echo "Key: " . $photourl->getName() . "<br>";
echo "Value: " . trim((string)$photourl) . "<br>";
}
0
solved PHP foreach notworking [closed]