loop through array of objects php code example
Example 1: php loop through object
foreach ($obj as $key => $value) {
echo "$key => $value\n";
}
Example 2: php loop through array of objects
foreach($request as $i => $i_value) {
echo $i_value->name;
}