foreach ($obj as $key => $value) { echo "$key => $value\n"; }
foreach($request as $i => $i_value) { echo $i_value->name; }