php loopthrough object
snippet in php

php loop through object

user9289

$person = new StdClass();
$person->name = "Taylor";
$person->age = 31;

foreach ($person as $key => $value) {
    echo $key.",".$value."\n";
}

php loopthrough object

user4442

foreach ($objects as $obj) {
   echo $obj->property;
}