Solution for "how to loop through an array of objects in php"

foreach($request as $i => $i_value) { echo $i_value->name; }

php loop through array of objects

foreach ($obj as $key => $value) { echo "$key => $value\n"; }

php loop through objects

Similar codes for "how to loop through an array of objects in php"


Latest 'PHP' questions

Added before "how to loop through an array of objects in php"