<?php
$arr=array(
'教部'=>array(
array('Li',10=> ' 18','女性'),
array('ガオ','20','男性'),
array('張','21','モンスター '),
),
'宣伝部'=>array(
array('Li','18','Shemale'),
array('Gao','20',' Male'),
array('Zhang','21','Yaoren'),
),
'財務部'=>array(
array('李','18','女性'),
array('ガオ', '20','男性') ,
array('Zhang','21','Yaoren'),
),
);
$arr[宣伝部] [0][0]='Zhang Erwa';
foreach($arr as $value){
foreach($value as $value2 ) {
Foreach ( $ Value2 as $ k = & gt; $ v) {
Echo $ k. ';
} }
}
echo '-- -------区切り線-----------'.'< ;br>';
}
echo '<pre>';
var_dump ($arr);
?>
代码:
foreach($arr as $bum => $b){
echo $bum.'<br />';
foreach($b as $bh => $ren){
echo $bh.'---';
foreach($ren as $xx){
echo $xx.' ';
}
echo '<br />' ;
}
}