php iterate over object properties code example
Example 1: php loopthrough object
foreach ($objects as $obj) {
echo $obj->property;
}
Example 2: php loop through class properties
foreach ($obj as $key => $value) {
echo "$key => $value\n";
}