Heim > Fragen und Antworten > Hauptteil
$arr=array(
'Teaching Department'=>array(
) array('Li','18','shemale'),
array('Gao','20','Male ' ),
array('Zhang','21','Yaoren'),
),
'Propaganda Department'=>array(
array('Li','18',' Shemale') ,
array('Gao','20','male'),
array('Zhang','21','monster'),
),
'Finanzabteilung' > '21', '魔人'),
),
);
小月九日2019-01-26 15:42:22
foreach ($arr as $key => $value) {
foreach ($value as $val) {
echo "部门:" .$key." 姓名:".$val[0]." 年龄:".$val[1]." 性别:".$val[2]."<br>";
}
}