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