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