遍历某个数组时 当该数组中嵌套数组,怎么获取内层数组元素中的某一个键值?
<?php
$students = array(
'2010'=>array('令狐冲',"59"),
'2011'=>array('林平之',"44"),
'2012'=>array('曲洋',"89"),
'2013'=>array('任盈盈',"92")
}
?>我只要序号和成绩??怎么遍历获取
<?php
$students = array(
'2010'=>array('令狐冲',"59"),
'2011'=>array('林平之',"44"),
'2012'=>array('曲洋',"89"),
'2013'=>array('任盈盈',"92")
}
?>我只要序号和成绩??怎么遍历获取
2017-01-03
举报