<?php
$arr=array(
'教學部'=>array(
array('李某',10=> '18','人妖'),
array('高某','20','男'),
array('張某','21','妖人'),
),
'宣傳部'=>array(
array('李某','18','人妖'),
array('高某','20','男'),
array('張某','21','妖人'),
卷),
'財務部'=>array(
## array('李某','18','人妖'), array('高某', '20','男'), array('張某','21','妖人'), ),#);$arr[宣傳部][0][0]='張二娃';foreach($arr as $value){ foreach($value as $value2 ){ foreach($value2 as $k=>$v){ echo $k . '-----' . $v .'<br />br /> '; } } 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 '
' ;
}
}