输出数组
$student = array(
1901 => array(
‘name’ => “AJEST”,
‘age ‘ => “24”,
‘sex’ => “男”,
‘grade’ => “79.9”
),
1902 => array(
‘name’ => “MDM”,
‘age ‘ => “23”,
‘sex’ => “女”,
‘grade’ => “59.9”
),
1903 => array(
‘name’ => “XL”,
‘age ‘ => “25”,
‘sex’ => “男”,
‘grade’ => “59.9”
),
);
//print_r($student);
foreach($student as $keya => $valuea){
echo $keya;
foreach($valuea as $keyb => $valuesb){
echo $valuesb;
<