Array
(
[0] => Array
(
[field_name] => Female
[type] => radio
)
[1] => Array
(
[field_name] => Male
[type] => radio
)
)
如何使用foreach循环获取field_name并从此数组中键入值?
答案 0 :(得分:1)
foreach($outerArray as $array){
foreach($array as $item){
echo $item->field_name;
echo $item->type;
}
}