<?php
$arr=array(
'Teaching Department'=>array(
) array('Li',10=>'18','shemale'),
가오', '20','남성'),
array('장','21','야오렌'),
),
'선전부'=>array(
array( '리',' 18','괴물'),
array('가오','20','남성'),
array('장','21','괴물'),,
배열( 'Zhang','21','Yaoren'),
),
);
$arr[선전부][0][0]='Zhang Erwa';
foreach($arr as $value ){
foreach($value as $value2){
foreach($value2 as $k=>$v){
echo $k .'<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){
에코 $xx.' ';
}
에코 '<br />' ;
}
}