how to go through an object in php code example Example: php loopthrough object foreach ($objects as $obj) { echo $obj->property; }