php loop trough properties of object code example Example: php loopthrough object foreach ($objects as $obj) { echo $obj->property; }