Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
echo $aaa[2]['area_id']. '--' .$aaa[1]['area_name'];
print_r($aaa);//打印所有数组
print_r(#aaa[0]);//打印当前数组
print_r($aaa [0]['son'] [0]['son'] );//打印当前数组下所有下级数组
foreach ($aaa as $k1 => $v1) {
echo '编号:';
echo $k1;
echo ',--id是:';
echo $v1['area_id'];
echo ',--省份名:';
echo $v1['area_name'];
echo ',--精度:';
echo $v1['lng'];
echo ',--维度:';
echo $v1['lat'];
echo '<br>';
echo '<hr>';
foreach ($v1['son'] as $k2 => $v2) {
echo '编号:';
echo $k2;
echo '--id是:';
echo $v2['area_id'];
echo '--城市名:';
echo $v2['area_name'];
echo '--精度:';
echo $v2['lng'];
echo '--维度:';
echo $v2['lat'];
echo '<hr>';
foreach($v2['son'] as $k3 => $v3){
echo '编号:'.$k3 . '--id是:' .$v3['area_id']. '--市区名:' .$v3['area_name']. '--精度:' .$v3['lng']. '--维度:' .$v3['lat'];
echo '<br>';
}
echo '<hr>';
}
};