how to run through each value of array code example Example: iterate through array javascript foreach ($objects as $obj) { echo $obj->property; }