遍历省市区
print_r 打印
print_r($arr);//数组中所有元素
print_r($arr[0]); //数组中第一项
print_r($arr[0]['son'][0]['son']);//打印北京市下所有区
echo 输出单个值
echo $arr[1]['area_name'];//打印第二个名称
foreach 循环
foreach ($arr as $sheng){
echo '| - '.$sheng['area_id'].'-'.$sheng['area_name'].'-'.$sheng['lng'].'-'.$sheng['lat'].'<br />';
foreach ($sheng['son'] as $shi){
echo '| - | - '.$shi['area_id'].'-'.$shi['area_pid'].'-'.$shi['area_name'].'-'.$shi['lng'].'-'.$shi['lat'].'<br />';
foreach ($shi['son'] as $qu){
echo '| - | - | - '.$qu['area_id'].'-'.$qu['area_pid'].'-'.$qu['area_name'].'-'.$qu['lng'].'-'.$qu['lat'].'<br />';
}
}
}