$arr=array(
'Teaching Department'=>array(
array('Li','18','Lady'),
array('Gao','20','Male'),
array('Zhang','21','Yaoren'),
),
'Propaganda Department'=>array(
array('Li','18','Lady'),
array('Gao','20' ,'Male'),
array('Zhang','21','Yaoren'),
),
'Finance Department'=>array (
array('Li','18','Lady'),
array('Gao','20','Male'),
array('Zhang','21','Yaoren'),
),
);
##
小月九日2019-01-26 15:42:22
foreach ($arr as $key => $value) {
foreach ($value as $val) {
echo "Department:" .$key." Name: ".$val[0]." Age: ".$val[1]." Gender: ".$val[2]."<br>";
}
}
天蓬老师2019-01-21 20:44:55
This array syntax is no longer used, please use: [...]