博客列表 >PHP 循环遍历数组

PHP 循环遍历数组

Mr.Ran
Mr.Ran原创
2021年10月10日 00:20:45723浏览

PHP 循环遍历数组

  • 要求
    循环输出 省\市\区
  • 代码演示
  1. //数据
  2. $arr = [
  3. [
  4. 'area_id' => 110000,
  5. 'area_pid' => 0,
  6. 'area_name' => '北京',
  7. 'lng' => 116.405,
  8. 'lat' => 39.905,
  9. 'son' => [
  10. [
  11. 'area_id' => 110100,
  12. 'area_pid' => 110000,
  13. 'area_name' => '北京市',
  14. 'lng' => 116.405,
  15. 'lat' => 39.905,
  16. 'son' => [
  17. [
  18. 'area_id' => 110101,
  19. 'area_pid' => 110100,
  20. 'area_name' => '东城区',
  21. 'lng' => 116.41,
  22. 'lat' => 39.9316
  23. ],
  24. [
  25. 'area_id' => 110102,
  26. 'area_pid' => 110100,
  27. 'area_name' => '西城区',
  28. 'lng' => 116.36,
  29. 'lat' => 39.9305
  30. ],
  31. [
  32. 'area_id' => 110105,
  33. 'area_pid' => 110100,
  34. 'area_name' => '朝阳区',
  35. 'lng' => 116.485,
  36. 'lat' => 39.9484
  37. ],
  38. [
  39. 'area_id' => 110106,
  40. 'area_pid' => 110100,
  41. 'area_name' => '丰台区',
  42. 'lng' => 116.286,
  43. 'lat' => 39.8585
  44. ],
  45. [
  46. 'area_id' => 110107,
  47. 'area_pid' => 110100,
  48. 'area_name' => '石景山区',
  49. 'lng' => 116.223,
  50. 'lat' => 39.9056
  51. ],
  52. [
  53. 'area_id' => 110108,
  54. 'area_pid' => 110100,
  55. 'area_name' => '海淀区',
  56. 'lng' => 116.298,
  57. 'lat' => 39.9593
  58. ],
  59. [
  60. 'area_id' => 110109,
  61. 'area_pid' => 110100,
  62. 'area_name' => '门头沟区',
  63. 'lng' => 116.101,
  64. 'lat' => 39.9404
  65. ],
  66. [
  67. 'area_id' => 110111,
  68. 'area_pid' => 110100,
  69. 'area_name' => '房山区',
  70. 'lng' => 116.143,
  71. 'lat' => 39.7479
  72. ],
  73. [
  74. 'area_id' => 110112,
  75. 'area_pid' => 110100,
  76. 'area_name' => '通州区',
  77. 'lng' => 116.657,
  78. 'lat' => 39.9097
  79. ],
  80. [
  81. 'area_id' => 110113,
  82. 'area_pid' => 110100,
  83. 'area_name' => '顺义区',
  84. 'lng' => 116.654,
  85. 'lat' => 40.1302
  86. ],
  87. [
  88. 'area_id' => 110114,
  89. 'area_pid' => 110100,
  90. 'area_name' => '昌平区',
  91. 'lng' => 116.231,
  92. 'lat' => 40.2207
  93. ],
  94. [
  95. 'area_id' => 110115,
  96. 'area_pid' => 110100,
  97. 'area_name' => '大兴区',
  98. 'lng' => 116.341,
  99. 'lat' => 39.7267
  100. ],
  101. [
  102. 'area_id' => 110116,
  103. 'area_pid' => 110100,
  104. 'area_name' => '怀柔区',
  105. 'lng' => 116.632,
  106. 'lat' => 40.316
  107. ],
  108. [
  109. 'area_id' => 110117,
  110. 'area_pid' => 110100,
  111. 'area_name' => '平谷区',
  112. 'lng' => 117.121,
  113. 'lat' => 40.1406
  114. ],
  115. [
  116. 'area_id' => 110228,
  117. 'area_pid' => 110100,
  118. 'area_name' => '密云县',
  119. 'lng' => 116.843,
  120. 'lat' => 40.3762
  121. ],
  122. [
  123. 'area_id' => 110229,
  124. 'area_pid' => 110100,
  125. 'area_name' => '延庆县',
  126. 'lng' => 115.975,
  127. 'lat' => 40.4567
  128. ]
  129. ]
  130. ]
  131. ]
  132. ],
  133. [
  134. 'area_id' => 120000,
  135. 'area_pid' => 0,
  136. 'area_name' => '天津',
  137. 'lng' => 117.19,
  138. 'lat' => 39.1256,
  139. 'son' => [
  140. [
  141. 'area_id' => 120100,
  142. 'area_pid' => 120000,
  143. 'area_name' => '天津市',
  144. 'lng' => 117.19,
  145. 'lat' => 39.1256,
  146. 'son' => [
  147. [
  148. 'area_id' => 120101,
  149. 'area_pid' => 120100,
  150. 'area_name' => '和平区',
  151. 'lng' => 117.215,
  152. 'lat' => 39.1172
  153. ],
  154. [
  155. 'area_id' => 120102,
  156. 'area_pid' => 120100,
  157. 'area_name' => '河东区',
  158. 'lng' => 117.226,
  159. 'lat' => 39.1232
  160. ],
  161. [
  162. 'area_id' => 120103,
  163. 'area_pid' => 120100,
  164. 'area_name' => '河西区',
  165. 'lng' => 117.223,
  166. 'lat' => 39.1096
  167. ],
  168. [
  169. 'area_id' => 120104,
  170. 'area_pid' => 120100,
  171. 'area_name' => '南开区',
  172. 'lng' => 117.151,
  173. 'lat' => 39.1382
  174. ],
  175. [
  176. 'area_id' => 120105,
  177. 'area_pid' => 120100,
  178. 'area_name' => '河北区',
  179. 'lng' => 117.197,
  180. 'lat' => 39.1482
  181. ],
  182. [
  183. 'area_id' => 120106,
  184. 'area_pid' => 120100,
  185. 'area_name' => '红桥区',
  186. 'lng' => 117.151,
  187. 'lat' => 39.1671
  188. ],
  189. [
  190. 'area_id' => 120110,
  191. 'area_pid' => 120100,
  192. 'area_name' => '东丽区',
  193. 'lng' => 117.314,
  194. 'lat' => 39.0863
  195. ],
  196. [
  197. 'area_id' => 120111,
  198. 'area_pid' => 120100,
  199. 'area_name' => '西青区',
  200. 'lng' => 117.009,
  201. 'lat' => 39.1412
  202. ],
  203. [
  204. 'area_id' => 120112,
  205. 'area_pid' => 120100,
  206. 'area_name' => '津南区',
  207. 'lng' => 117.385,
  208. 'lat' => 38.9914
  209. ],
  210. [
  211. 'area_id' => 120113,
  212. 'area_pid' => 120100,
  213. 'area_name' => '北辰区',
  214. 'lng' => 117.132,
  215. 'lat' => 39.2213
  216. ],
  217. [
  218. 'area_id' => 120114,
  219. 'area_pid' => 120100,
  220. 'area_name' => '武清区',
  221. 'lng' => 117.044,
  222. 'lat' => 39.3842
  223. ],
  224. [
  225. 'area_id' => 120115,
  226. 'area_pid' => 120100,
  227. 'area_name' => '宝坻区',
  228. 'lng' => 117.31,
  229. 'lat' => 39.7176
  230. ],
  231. [
  232. 'area_id' => 120116,
  233. 'area_pid' => 120100,
  234. 'area_name' => '滨海新区',
  235. 'lng' => 117.702,
  236. 'lat' => 39.0267
  237. ],
  238. [
  239. 'area_id' => 120221,
  240. 'area_pid' => 120100,
  241. 'area_name' => '宁河县',
  242. 'lng' => 117.826,
  243. 'lat' => 39.3305
  244. ],
  245. [
  246. 'area_id' => 120223,
  247. 'area_pid' => 120100,
  248. 'area_name' => '静海县',
  249. 'lng' => 116.974,
  250. 'lat' => 38.9458
  251. ],
  252. [
  253. 'area_id' => 120225,
  254. 'area_pid' => 120100,
  255. 'area_name' => '蓟县',
  256. 'lng' => 117.408,
  257. 'lat' => 40.0457
  258. ]
  259. ]
  260. ]
  261. ]
  262. ],
  263. [
  264. 'area_id' => 130000,
  265. 'area_pid' => 0,
  266. 'area_name' => '河北省',
  267. 'lng' => 114.502,
  268. 'lat' => 38.0455,
  269. 'son' => [
  270. [
  271. 'area_id' => 130100,
  272. 'area_pid' => 130000,
  273. 'area_name' => '石家庄市',
  274. 'lng' => 114.502,
  275. 'lat' => 38.0455,
  276. 'son' => [
  277. [
  278. 'area_id' => 130102,
  279. 'area_pid' => 130100,
  280. 'area_name' => '长安区',
  281. 'lng' => 114.539,
  282. 'lat' => 38.0367,
  283. ],
  284. [
  285. 'area_id' => 130104,
  286. 'area_pid' => 130100,
  287. 'area_name' => '桥西区',
  288. 'lng' => 114.47,
  289. 'lat' => 38.0322
  290. ],
  291. [
  292. 'area_id' => 130105,
  293. 'area_pid' => 130100,
  294. 'area_name' => '新华区',
  295. 'lng' => 114.463,
  296. 'lat' => 38.0509
  297. ],
  298. [
  299. 'area_id' => 130107,
  300. 'area_pid' => 130100,
  301. 'area_name' => '井陉矿区',
  302. 'lng' => 114.065,
  303. 'lat' => 38.0671
  304. ],
  305. [
  306. 'area_id' => 130108,
  307. 'area_pid' => 130100,
  308. 'area_name' => '裕华区',
  309. 'lng' => 114.531,
  310. 'lat' => 38.006
  311. ],
  312. [
  313. 'area_id' => 130109,
  314. 'area_pid' => 130100,
  315. 'area_name' => '藁城区',
  316. 'lng' => 114.847,
  317. 'lat' => 38.0216
  318. ],
  319. [
  320. 'area_id' => 130110,
  321. 'area_pid' => 130100,
  322. 'area_name' => '鹿泉区',
  323. 'lng' => 114.313,
  324. 'lat' => 38.0878
  325. ],
  326. [
  327. 'area_id' => 130111,
  328. 'area_pid' => 130100,
  329. 'area_name' => '栾城区',
  330. 'lng' => 114.648,
  331. 'lat' => 37.9002
  332. ],
  333. [
  334. 'area_id' => 130121,
  335. 'area_pid' => 130100,
  336. 'area_name' => '井陉县',
  337. 'lng' => 114.143,
  338. 'lat' => 38.0369
  339. ],
  340. [
  341. 'area_id' => 130123,
  342. 'area_pid' => 130100,
  343. 'area_name' => '正定县',
  344. 'lng' => 114.573,
  345. 'lat' => 38.1445
  346. ],
  347. [
  348. 'area_id' => 130125,
  349. 'area_pid' => 130100,
  350. 'area_name' => '行唐县',
  351. 'lng' => 114.553,
  352. 'lat' => 38.4365
  353. ],
  354. [
  355. 'area_id' => 130126,
  356. 'area_pid' => 130100,
  357. 'area_name' => '灵寿县',
  358. 'lng' => 114.383,
  359. 'lat' => 38.3084
  360. ],
  361. [
  362. 'area_id' => 130127,
  363. 'area_pid' => 130100,
  364. 'area_name' => '高邑县',
  365. 'lng' => 114.611,
  366. 'lat' => 37.6156
  367. ],
  368. [
  369. 'area_id' => 130128,
  370. 'area_pid' => 130100,
  371. 'area_name' => '深泽县',
  372. 'lng' => 115.204,
  373. 'lat' => 38.1835
  374. ],
  375. [
  376. 'area_id' => 130129,
  377. 'area_pid' => 130100,
  378. 'area_name' => '赞皇县',
  379. 'lng' => 114.388,
  380. 'lat' => 37.6614
  381. ],
  382. [
  383. 'area_id' => 130130,
  384. 'area_pid' => 130100,
  385. 'area_name' => '无极县',
  386. 'lng' => 114.975,
  387. 'lat' => 38.1765
  388. ],
  389. [
  390. 'area_id' => 130131,
  391. 'area_pid' => 130100,
  392. 'area_name' => '平山县',
  393. 'lng' => 114.186,
  394. 'lat' => 38.2599
  395. ],
  396. [
  397. 'area_id' => 130132,
  398. 'area_pid' => 130100,
  399. 'area_name' => '元氏县',
  400. 'lng' => 114.525,
  401. 'lat' => 37.7667
  402. ],
  403. [
  404. 'area_id' => 130133,
  405. 'area_pid' => 130100,
  406. 'area_name' => '赵县',
  407. 'lng' => 114.776,
  408. 'lat' => 37.7563
  409. ],
  410. [
  411. 'area_id' => 130181,
  412. 'area_pid' => 130100,
  413. 'area_name' => '辛集市',
  414. 'lng' => 115.206,
  415. 'lat' => 37.9408
  416. ],
  417. [
  418. 'area_id' => 130183,
  419. 'area_pid' => 130100,
  420. 'area_name' => '晋州市',
  421. 'lng' => 115.043,
  422. 'lat' => 38.0313
  423. ],
  424. [
  425. 'area_id' => 130184,
  426. 'area_pid' => 130100,
  427. 'area_name' => '新乐市',
  428. 'lng' => 114.69,
  429. 'lat' => 38.3442
  430. ]
  431. ]
  432. ],
  433. [
  434. 'area_id' => 130200,
  435. 'area_pid' => 130000,
  436. 'area_name' => '唐山市',
  437. 'lng' => 118.175,
  438. 'lat' => 39.6351,
  439. 'son' => [
  440. [
  441. 'area_id' => 130284,
  442. 'area_pid' => 130200,
  443. 'area_name' => '滦州市',
  444. 'lng' => '',
  445. 'lat' => ''
  446. ],
  447. [
  448. 'area_id' => 130202,
  449. 'area_pid' => 130200,
  450. 'area_name' => '路南区',
  451. 'lng' => 118.154,
  452. 'lat' => 39.625,
  453. ],
  454. [
  455. 'area_id' => 130203,
  456. 'area_pid' => 130200,
  457. 'area_name' => '路北区',
  458. 'lng' => 118.201,
  459. 'lat' => 39.6244
  460. ],
  461. [
  462. 'area_id' => 130204,
  463. 'area_pid' => 130200,
  464. 'area_name' => '古冶区',
  465. 'lng' => 118.458,
  466. 'lat' => 39.7199
  467. ],
  468. [
  469. 'area_id' => 130205,
  470. 'area_pid' => 130200,
  471. 'area_name' => '开平区',
  472. 'lng' => 118.262,
  473. 'lat' => 39.6713
  474. ],
  475. [
  476. 'area_id' => 130207,
  477. 'area_pid' => 130200,
  478. 'area_name' => '丰南区',
  479. 'lng' => 118.113,
  480. 'lat' => 39.5648
  481. ],
  482. [
  483. 'area_id' => 130208,
  484. 'area_pid' => 130200,
  485. 'area_name' => '丰润区',
  486. 'lng' => 118.13,
  487. 'lat' => 39.8244
  488. ],
  489. [
  490. 'area_id' => 130209,
  491. 'area_pid' => 130200,
  492. 'area_name' => '曹妃甸区',
  493. 'lng' => 118.46,
  494. 'lat' => 39.2731
  495. ],
  496. [
  497. 'area_id' => 130223,
  498. 'area_pid' => 130200,
  499. 'area_name' => '滦县',
  500. 'lng' => 118.703,
  501. 'lat' => 39.7406
  502. ],
  503. [
  504. 'area_id' => 130224,
  505. 'area_pid' => 130200,
  506. 'area_name' => '滦南县',
  507. 'lng' => 118.674,
  508. 'lat' => 39.5039
  509. ],
  510. [
  511. 'area_id' => 130225,
  512. 'area_pid' => 130200,
  513. 'area_name' => '乐亭县',
  514. 'lng' => 118.912,
  515. 'lat' => 39.4256
  516. ],
  517. [
  518. 'area_id' => 130227,
  519. 'area_pid' => 130200,
  520. 'area_name' => '迁西县',
  521. 'lng' => 118.316,
  522. 'lat' => 40.1459
  523. ],
  524. [
  525. 'area_id' => 130229,
  526. 'area_pid' => 130200,
  527. 'area_name' => '玉田县',
  528. 'lng' => 117.739,
  529. 'lat' => 39.9005
  530. ],
  531. [
  532. 'area_id' => 130281,
  533. 'area_pid' => 130200,
  534. 'area_name' => '遵化市',
  535. 'lng' => 117.964,
  536. 'lat' => 40.1874
  537. ],
  538. [
  539. 'area_id' => 130283,
  540. 'area_pid' => 130200,
  541. 'area_name' => '迁安市',
  542. 'lng' => 118.701,
  543. 'lat' => 39.9983
  544. ]
  545. ]
  546. ],
  547. [
  548. 'area_id' => 130300,
  549. 'area_pid' => 130000,
  550. 'area_name' => '秦皇岛市',
  551. 'lng' => 119.587,
  552. 'lat' => 39.9425,
  553. 'son' => [
  554. [
  555. 'area_id' => 130302,
  556. 'area_pid' => 130300,
  557. 'area_name' => '海港区',
  558. 'lng' => 119.61,
  559. 'lat' => 39.9345
  560. ],
  561. [
  562. 'area_id' => 130303,
  563. 'area_pid' => 130300,
  564. 'area_name' => '山海关区',
  565. 'lng' => 119.776,
  566. 'lat' => 39.9787
  567. ],
  568. [
  569. 'area_id' => 130304,
  570. 'area_pid' => 130300,
  571. 'area_name' => '北戴河区',
  572. 'lng' => 119.484,
  573. 'lat' => 39.8341
  574. ],
  575. [
  576. 'area_id' => 130321,
  577. 'area_pid' => 130300,
  578. 'area_name' => '青龙满族自治县',
  579. 'lng' => 118.952,
  580. 'lat' => 40.4074
  581. ],
  582. [
  583. 'area_id' => 130322,
  584. 'area_pid' => 130300,
  585. 'area_name' => '昌黎县',
  586. 'lng' => 119.166,
  587. 'lat' => 39.7088
  588. ],
  589. [
  590. 'area_id' => 130323,
  591. 'area_pid' => 130300,
  592. 'area_name' => '抚宁县',
  593. 'lng' => 119.245,
  594. 'lat' => 39.8754
  595. ],
  596. [
  597. 'area_id' => 130324,
  598. 'area_pid' => 130300,
  599. 'area_name' => '卢龙县',
  600. 'lng' => 118.893,
  601. 'lat' => 39.8918
  602. ]
  603. ]
  604. ],
  605. [
  606. 'area_id' => 130400,
  607. 'area_pid' => 130000,
  608. 'area_name' => '邯郸市',
  609. 'lng' => 114.491,
  610. 'lat' => 36.6123,
  611. 'son' => [
  612. [
  613. 'area_id' => 130402,
  614. 'area_pid' => 130400,
  615. 'area_name' => '邯山区',
  616. 'lng' => 114.484,
  617. 'lat' => 36.6001
  618. ],
  619. [
  620. 'area_id' => 130403,
  621. 'area_pid' => 130400,
  622. 'area_name' => '丛台区',
  623. 'lng' => 114.493,
  624. 'lat' => 36.6185
  625. ],
  626. [
  627. 'area_id' => 130404,
  628. 'area_pid' => 130400,
  629. 'area_name' => '复兴区',
  630. 'lng' => 114.459,
  631. 'lat' => 36.6113
  632. ],
  633. [
  634. 'area_id' => 130406,
  635. 'area_pid' => 130400,
  636. 'area_name' => '峰峰矿区',
  637. 'lng' => 114.211,
  638. 'lat' => 36.4194
  639. ],
  640. [
  641. 'area_id' => 130421,
  642. 'area_pid' => 130400,
  643. 'area_name' => '邯郸县',
  644. 'lng' => 114.531,
  645. 'lat' => 36.5938
  646. ],
  647. [
  648. 'area_id' => 130423,
  649. 'area_pid' => 130400,
  650. 'area_name' => '临漳县',
  651. 'lng' => 114.619,
  652. 'lat' => 36.3346
  653. ],
  654. [
  655. 'area_id' => 130424,
  656. 'area_pid' => 130400,
  657. 'area_name' => '成安县',
  658. 'lng' => 114.67,
  659. 'lat' => 36.4441
  660. ],
  661. [
  662. 'area_id' => 130425,
  663. 'area_pid' => 130400,
  664. 'area_name' => '大名县',
  665. 'lng' => 115.154,
  666. 'lat' => 36.2799
  667. ],
  668. [
  669. 'area_id' => 130426,
  670. 'area_pid' => 130400,
  671. 'area_name' => '涉县',
  672. 'lng' => 113.692,
  673. 'lat' => 36.5807
  674. ],
  675. [
  676. 'area_id' => 130427,
  677. 'area_pid' => 130400,
  678. 'area_name' => '磁县',
  679. 'lng' => 114.374,
  680. 'lat' => 36.3739
  681. ],
  682. [
  683. 'area_id' => 130428,
  684. 'area_pid' => 130400,
  685. 'area_name' => '肥乡县',
  686. 'lng' => 114.8,
  687. 'lat' => 36.5481
  688. ],
  689. [
  690. 'area_id' => 130429,
  691. 'area_pid' => 130400,
  692. 'area_name' => '永年县',
  693. 'lng' => 114.489,
  694. 'lat' => 36.7836
  695. ],
  696. [
  697. 'area_id' => 130430,
  698. 'area_pid' => 130400,
  699. 'area_name' => '邱县',
  700. 'lng' => 115.174,
  701. 'lat' => 36.8208
  702. ],
  703. [
  704. 'area_id' => 130431,
  705. 'area_pid' => 130400,
  706. 'area_name' => '鸡泽县',
  707. 'lng' => 114.874,
  708. 'lat' => 36.9237
  709. ],
  710. [
  711. 'area_id' => 130432,
  712. 'area_pid' => 130400,
  713. 'area_name' => '广平县',
  714. 'lng' => 114.947,
  715. 'lat' => 36.4805
  716. ],
  717. [
  718. 'area_id' => 130433,
  719. 'area_pid' => 130400,
  720. 'area_name' => '馆陶县',
  721. 'lng' => 115.299,
  722. 'lat' => 36.5372
  723. ],
  724. [
  725. 'area_id' => 130434,
  726. 'area_pid' => 130400,
  727. 'area_name' => '魏县',
  728. 'lng' => 114.935,
  729. 'lat' => 36.3617
  730. ],
  731. [
  732. 'area_id' => 130435,
  733. 'area_pid' => 130400,
  734. 'area_name' => '曲周县',
  735. 'lng' => 114.952,
  736. 'lat' => 36.7767
  737. ],
  738. [
  739. 'area_id' => 130481,
  740. 'area_pid' => 130400,
  741. 'area_name' => '武安市',
  742. 'lng' => 114.202,
  743. 'lat' => 36.6928
  744. ]
  745. ]
  746. ],
  747. [
  748. 'area_id' => 130500,
  749. 'area_pid' => 130000,
  750. 'area_name' => '邢台市',
  751. 'lng' => 114.509,
  752. 'lat' => 37.0682,
  753. 'son' => [
  754. [
  755. 'area_id' => 130502,
  756. 'area_pid' => 130500,
  757. 'area_name' => '桥东区',
  758. 'lng' => 114.507,
  759. 'lat' => 37.068
  760. ],
  761. [
  762. 'area_id' => 130503,
  763. 'area_pid' => 130500,
  764. 'area_name' => '桥西区',
  765. 'lng' => 114.468,
  766. 'lat' => 37.0598
  767. ],
  768. [
  769. 'area_id' => 130521,
  770. 'area_pid' => 130500,
  771. 'area_name' => '邢台县',
  772. 'lng' => 114.566,
  773. 'lat' => 37.0456
  774. ],
  775. [
  776. 'area_id' => 130522,
  777. 'area_pid' => 130500,
  778. 'area_name' => '临城县',
  779. 'lng' => 114.504,
  780. 'lat' => 37.4398
  781. ],
  782. [
  783. 'area_id' => 130523,
  784. 'area_pid' => 130500,
  785. 'area_name' => '内丘县',
  786. 'lng' => 114.512,
  787. 'lat' => 37.2867
  788. ],
  789. [
  790. 'area_id' => 130524,
  791. 'area_pid' => 130500,
  792. 'area_name' => '柏乡县',
  793. 'lng' => 114.693,
  794. 'lat' => 37.4824
  795. ],
  796. [
  797. 'area_id' => 130525,
  798. 'area_pid' => 130500,
  799. 'area_name' => '隆尧县',
  800. 'lng' => 114.776,
  801. 'lat' => 37.3535
  802. ],
  803. [
  804. 'area_id' => 130526,
  805. 'area_pid' => 130500,
  806. 'area_name' => '任县',
  807. 'lng' => 114.684,
  808. 'lat' => 37.1258
  809. ],
  810. [
  811. 'area_id' => 130527,
  812. 'area_pid' => 130500,
  813. 'area_name' => '南和县',
  814. 'lng' => 114.684,
  815. 'lat' => 37.0049
  816. ],
  817. [
  818. 'area_id' => 130528,
  819. 'area_pid' => 130500,
  820. 'area_name' => '宁晋县',
  821. 'lng' => 114.921,
  822. 'lat' => 37.617
  823. ],
  824. [
  825. 'area_id' => 130529,
  826. 'area_pid' => 130500,
  827. 'area_name' => '巨鹿县',
  828. 'lng' => 115.035,
  829. 'lat' => 37.218
  830. ],
  831. [
  832. 'area_id' => 130530,
  833. 'area_pid' => 130500,
  834. 'area_name' => '新河县',
  835. 'lng' => 115.25,
  836. 'lat' => 37.5272
  837. ],
  838. [
  839. 'area_id' => 130531,
  840. 'area_pid' => 130500,
  841. 'area_name' => '广宗县',
  842. 'lng' => 115.143,
  843. 'lat' => 37.0746
  844. ],
  845. [
  846. 'area_id' => 130532,
  847. 'area_pid' => 130500,
  848. 'area_name' => '平乡县',
  849. 'lng' => 115.03,
  850. 'lat' => 37.0632
  851. ],
  852. [
  853. 'area_id' => 130533,
  854. 'area_pid' => 130500,
  855. 'area_name' => '威县',
  856. 'lng' => 115.264,
  857. 'lat' => 36.9768
  858. ],
  859. [
  860. 'area_id' => 130534,
  861. 'area_pid' => 130500,
  862. 'area_name' => '清河县',
  863. 'lng' => 115.665,
  864. 'lat' => 37.0712
  865. ],
  866. [
  867. 'area_id' => 130535,
  868. 'area_pid' => 130500,
  869. 'area_name' => '临西县',
  870. 'lng' => 115.501,
  871. 'lat' => 36.8708
  872. ],
  873. [
  874. 'area_id' => 130581,
  875. 'area_pid' => 130500,
  876. 'area_name' => '南宫市',
  877. 'lng' => 115.391,
  878. 'lat' => 37.358
  879. ],
  880. [
  881. 'area_id' => 130582,
  882. 'area_pid' => 130500,
  883. 'area_name' => '沙河市',
  884. 'lng' => 114.498,
  885. 'lat' => 36.8577
  886. ]
  887. ]
  888. ],
  889. [
  890. 'area_id' => 130600,
  891. 'area_pid' => 130000,
  892. 'area_name' => '保定市',
  893. 'lng' => 115.482,
  894. 'lat' => 38.8677,
  895. 'son' => [
  896. [
  897. 'area_id' => 130602,
  898. 'area_pid' => 130600,
  899. 'area_name' => '新市区',
  900. 'lng' => 115.459,
  901. 'lat' => 38.8775
  902. ],
  903. [
  904. 'area_id' => 130603,
  905. 'area_pid' => 130600,
  906. 'area_name' => '北市区',
  907. 'lng' => 115.497,
  908. 'lat' => 38.8832
  909. ],
  910. [
  911. 'area_id' => 130604,
  912. 'area_pid' => 130600,
  913. 'area_name' => '南市区',
  914. 'lng' => 115.529,
  915. 'lat' => 38.8545
  916. ],
  917. [
  918. 'area_id' => 130621,
  919. 'area_pid' => 130600,
  920. 'area_name' => '满城县',
  921. 'lng' => 115.323,
  922. 'lat' => 38.9497
  923. ],
  924. [
  925. 'area_id' => 130622,
  926. 'area_pid' => 130600,
  927. 'area_name' => '清苑县',
  928. 'lng' => 115.493,
  929. 'lat' => 38.7671
  930. ],
  931. [
  932. 'area_id' => 130623,
  933. 'area_pid' => 130600,
  934. 'area_name' => '涞水县',
  935. 'lng' => 115.715,
  936. 'lat' => 39.394
  937. ],
  938. [
  939. 'area_id' => 130624,
  940. 'area_pid' => 130600,
  941. 'area_name' => '阜平县',
  942. 'lng' => 114.197,
  943. 'lat' => 38.8476
  944. ],
  945. [
  946. 'area_id' => 130625,
  947. 'area_pid' => 130600,
  948. 'area_name' => '徐水县',
  949. 'lng' => 115.658,
  950. 'lat' => 39.021
  951. ],
  952. [
  953. 'area_id' => 130626,
  954. 'area_pid' => 130600,
  955. 'area_name' => '定兴县',
  956. 'lng' => 115.808,
  957. 'lat' => 39.2631
  958. ],
  959. [
  960. 'area_id' => 130627,
  961. 'area_pid' => 130600,
  962. 'area_name' => '唐县',
  963. 'lng' => 114.985,
  964. 'lat' => 38.7451
  965. ],
  966. [
  967. 'area_id' => 130628,
  968. 'area_pid' => 130600,
  969. 'area_name' => '高阳县',
  970. 'lng' => 115.779,
  971. 'lat' => 38.7
  972. ],
  973. [
  974. 'area_id' => 130629,
  975. 'area_pid' => 130600,
  976. 'area_name' => '容城县',
  977. 'lng' => 115.872,
  978. 'lat' => 39.0535
  979. ],
  980. [
  981. 'area_id' => 130630,
  982. 'area_pid' => 130600,
  983. 'area_name' => '涞源县',
  984. 'lng' => 114.691,
  985. 'lat' => 39.3539
  986. ],
  987. [
  988. 'area_id' => 130631,
  989. 'area_pid' => 130600,
  990. 'area_name' => '望都县',
  991. 'lng' => 115.157,
  992. 'lat' => 38.71
  993. ],
  994. [
  995. 'area_id' => 130632,
  996. 'area_pid' => 130600,
  997. 'area_name' => '安新县',
  998. 'lng' => 115.936,
  999. 'lat' => 38.9353
  1000. ],
  1001. [
  1002. 'area_id' => 130633,
  1003. 'area_pid' => 130600,
  1004. 'area_name' => '易县',
  1005. 'lng' => 115.498,
  1006. 'lat' => 39.3489
  1007. ],
  1008. [
  1009. 'area_id' => 130634,
  1010. 'area_pid' => 130600,
  1011. 'area_name' => '曲阳县',
  1012. 'lng' => 114.701,
  1013. 'lat' => 38.6215
  1014. ],
  1015. [
  1016. 'area_id' => 130635,
  1017. 'area_pid' => 130600,
  1018. 'area_name' => '蠡县',
  1019. 'lng' => 115.577,
  1020. 'lat' => 38.4897
  1021. ],
  1022. [
  1023. 'area_id' => 130636,
  1024. 'area_pid' => 130600,
  1025. 'area_name' => '顺平县',
  1026. 'lng' => 115.135,
  1027. 'lat' => 38.8385
  1028. ],
  1029. [
  1030. 'area_id' => 130637,
  1031. 'area_pid' => 130600,
  1032. 'area_name' => '博野县',
  1033. 'lng' => 115.47,
  1034. 'lat' => 38.4564
  1035. ],
  1036. [
  1037. 'area_id' => 130638,
  1038. 'area_pid' => 130600,
  1039. 'area_name' => '雄县',
  1040. 'lng' => 116.109,
  1041. 'lat' => 38.9944
  1042. ],
  1043. [
  1044. 'area_id' => 130681,
  1045. 'area_pid' => 130600,
  1046. 'area_name' => '涿州市',
  1047. 'lng' => 115.981,
  1048. 'lat' => 39.4862
  1049. ],
  1050. [
  1051. 'area_id' => 130682,
  1052. 'area_pid' => 130600,
  1053. 'area_name' => '定州市',
  1054. 'lng' => 114.99,
  1055. 'lat' => 38.5162
  1056. ],
  1057. [
  1058. 'area_id' => 130683,
  1059. 'area_pid' => 130600,
  1060. 'area_name' => '安国市',
  1061. 'lng' => 115.323,
  1062. 'lat' => 38.4139
  1063. ],
  1064. [
  1065. 'area_id' => 130684,
  1066. 'area_pid' => 130600,
  1067. 'area_name' => '高碑店市',
  1068. 'lng' => 115.874,
  1069. 'lat' => 39.3265
  1070. ]
  1071. ]
  1072. ],
  1073. [
  1074. 'area_id' => 130700,
  1075. 'area_pid' => 130000,
  1076. 'area_name' => '张家口市',
  1077. 'lng' => 114.884,
  1078. 'lat' => 40.8119,
  1079. 'son' => [
  1080. [
  1081. 'area_id' => 130702,
  1082. 'area_pid' => 130700,
  1083. 'area_name' => '桥东区',
  1084. 'lng' => 114.894,
  1085. 'lat' => 40.7884
  1086. ],
  1087. [
  1088. 'area_id' => 130703,
  1089. 'area_pid' => 130700,
  1090. 'area_name' => '桥西区',
  1091. 'lng' => 114.87,
  1092. 'lat' => 40.8195
  1093. ],
  1094. [
  1095. 'area_id' => 130705,
  1096. 'area_pid' => 130700,
  1097. 'area_name' => '宣化区',
  1098. 'lng' => 115.065,
  1099. 'lat' => 40.6096
  1100. ],
  1101. [
  1102. 'area_id' => 130706,
  1103. 'area_pid' => 130700,
  1104. 'area_name' => '下花园区',
  1105. 'lng' => 115.287,
  1106. 'lat' => 40.5024
  1107. ],
  1108. [
  1109. 'area_id' => 130721,
  1110. 'area_pid' => 130700,
  1111. 'area_name' => '宣化县',
  1112. 'lng' => 115.155,
  1113. 'lat' => 40.5662
  1114. ],
  1115. [
  1116. 'area_id' => 130722,
  1117. 'area_pid' => 130700,
  1118. 'area_name' => '张北县',
  1119. 'lng' => 114.714,
  1120. 'lat' => 41.1598
  1121. ],
  1122. [
  1123. 'area_id' => 130723,
  1124. 'area_pid' => 130700,
  1125. 'area_name' => '康保县',
  1126. 'lng' => 114.6,
  1127. 'lat' => 41.8522
  1128. ],
  1129. [
  1130. 'area_id' => 130724,
  1131. 'area_pid' => 130700,
  1132. 'area_name' => '沽源县',
  1133. 'lng' => 115.689,
  1134. 'lat' => 41.6696
  1135. ],
  1136. [
  1137. 'area_id' => 130725,
  1138. 'area_pid' => 130700,
  1139. 'area_name' => '尚义县',
  1140. 'lng' => 113.971,
  1141. 'lat' => 41.0778
  1142. ],
  1143. [
  1144. 'area_id' => 130726,
  1145. 'area_pid' => 130700,
  1146. 'area_name' => '蔚县',
  1147. 'lng' => 114.589,
  1148. 'lat' => 39.8407
  1149. ],
  1150. [
  1151. 'area_id' => 130727,
  1152. 'area_pid' => 130700,
  1153. 'area_name' => '阳原县',
  1154. 'lng' => 114.151,
  1155. 'lat' => 40.1036
  1156. ],
  1157. [
  1158. 'area_id' => 130728,
  1159. 'area_pid' => 130700,
  1160. 'area_name' => '怀安县',
  1161. 'lng' => 114.386,
  1162. 'lat' => 40.6743
  1163. ],
  1164. [
  1165. 'area_id' => 130729,
  1166. 'area_pid' => 130700,
  1167. 'area_name' => '万全县',
  1168. 'lng' => 114.741,
  1169. 'lat' => 40.7669
  1170. ],
  1171. [
  1172. 'area_id' => 130730,
  1173. 'area_pid' => 130700,
  1174. 'area_name' => '怀来县',
  1175. 'lng' => 115.518,
  1176. 'lat' => 40.4154
  1177. ],
  1178. [
  1179. 'area_id' => 130731,
  1180. 'area_pid' => 130700,
  1181. 'area_name' => '涿鹿县',
  1182. 'lng' => 115.224,
  1183. 'lat' => 40.3764
  1184. ],
  1185. [
  1186. 'area_id' => 130732,
  1187. 'area_pid' => 130700,
  1188. 'area_name' => '赤城县',
  1189. 'lng' => 115.832,
  1190. 'lat' => 40.9144
  1191. ],
  1192. [
  1193. 'area_id' => 130733,
  1194. 'area_pid' => 130700,
  1195. 'area_name' => '崇礼县',
  1196. 'lng' => 115.28,
  1197. 'lat' => 40.9752
  1198. ]
  1199. ]
  1200. ],
  1201. [
  1202. 'area_id' => 130800,
  1203. 'area_pid' => 130000,
  1204. 'area_name' => '承德市',
  1205. 'lng' => 117.939,
  1206. 'lat' => 40.9762,
  1207. 'son' => [
  1208. [
  1209. 'area_id' => 130802,
  1210. 'area_pid' => 130800,
  1211. 'area_name' => '双桥区',
  1212. 'lng' => 117.943,
  1213. 'lat' => 40.9747
  1214. ],
  1215. [
  1216. 'area_id' => 130803,
  1217. 'area_pid' => 130800,
  1218. 'area_name' => '双滦区',
  1219. 'lng' => 117.745,
  1220. 'lat' => 40.9538
  1221. ],
  1222. [
  1223. 'area_id' => 130804,
  1224. 'area_pid' => 130800,
  1225. 'area_name' => '鹰手营子矿区',
  1226. 'lng' => 117.66,
  1227. 'lat' => 40.5474
  1228. ],
  1229. [
  1230. 'area_id' => 130821,
  1231. 'area_pid' => 130800,
  1232. 'area_name' => '承德县',
  1233. 'lng' => 118.176,
  1234. 'lat' => 40.7699
  1235. ],
  1236. [
  1237. 'area_id' => 130822,
  1238. 'area_pid' => 130800,
  1239. 'area_name' => '兴隆县',
  1240. 'lng' => 117.501,
  1241. 'lat' => 40.4171
  1242. ],
  1243. [
  1244. 'area_id' => 130823,
  1245. 'area_pid' => 130800,
  1246. 'area_name' => '平泉县',
  1247. 'lng' => 118.702,
  1248. 'lat' => 41.0184
  1249. ],
  1250. [
  1251. 'area_id' => 130824,
  1252. 'area_pid' => 130800,
  1253. 'area_name' => '滦平县',
  1254. 'lng' => 117.333,
  1255. 'lat' => 40.9415
  1256. ],
  1257. [
  1258. 'area_id' => 130825,
  1259. 'area_pid' => 130800,
  1260. 'area_name' => '隆化县',
  1261. 'lng' => 117.73,
  1262. 'lat' => 41.3141
  1263. ],
  1264. [
  1265. 'area_id' => 130826,
  1266. 'area_pid' => 130800,
  1267. 'area_name' => '丰宁满族自治县',
  1268. 'lng' => 116.649,
  1269. 'lat' => 41.2048
  1270. ],
  1271. [
  1272. 'area_id' => 130827,
  1273. 'area_pid' => 130800,
  1274. 'area_name' => '宽城满族自治县',
  1275. 'lng' => 118.492,
  1276. 'lat' => 40.6083
  1277. ],
  1278. [
  1279. 'area_id' => 130828,
  1280. 'area_pid' => 130800,
  1281. 'area_name' => '围场满族蒙古族自治县',
  1282. 'lng' => 117.76,
  1283. 'lat' => 41.9437
  1284. ]
  1285. ]
  1286. ],
  1287. [
  1288. 'area_id' => 130900,
  1289. 'area_pid' => 130000,
  1290. 'area_name' => '沧州市',
  1291. 'lng' => 116.857,
  1292. 'lat' => 38.3106,
  1293. 'son' => [
  1294. [
  1295. 'area_id' => 130902,
  1296. 'area_pid' => 130900,
  1297. 'area_name' => '新华区',
  1298. 'lng' => 116.866,
  1299. 'lat' => 38.3144
  1300. ],
  1301. [
  1302. 'area_id' => 130903,
  1303. 'area_pid' => 130900,
  1304. 'area_name' => '运河区',
  1305. 'lng' => 116.857,
  1306. 'lat' => 38.3135
  1307. ],
  1308. [
  1309. 'area_id' => 130921,
  1310. 'area_pid' => 130900,
  1311. 'area_name' => '沧县',
  1312. 'lng' => 116.878,
  1313. 'lat' => 38.2936
  1314. ],
  1315. [
  1316. 'area_id' => 130922,
  1317. 'area_pid' => 130900,
  1318. 'area_name' => '青县',
  1319. 'lng' => 116.803,
  1320. 'lat' => 38.5835
  1321. ],
  1322. [
  1323. 'area_id' => 130923,
  1324. 'area_pid' => 130900,
  1325. 'area_name' => '东光县',
  1326. 'lng' => 116.537,
  1327. 'lat' => 37.8857
  1328. ],
  1329. [
  1330. 'area_id' => 130924,
  1331. 'area_pid' => 130900,
  1332. 'area_name' => '海兴县',
  1333. 'lng' => 117.498,
  1334. 'lat' => 38.1396
  1335. ],
  1336. [
  1337. 'area_id' => 130925,
  1338. 'area_pid' => 130900,
  1339. 'area_name' => '盐山县',
  1340. 'lng' => 117.231,
  1341. 'lat' => 38.0565
  1342. ],
  1343. [
  1344. 'area_id' => 130926,
  1345. 'area_pid' => 130900,
  1346. 'area_name' => '肃宁县',
  1347. 'lng' => 115.83,
  1348. 'lat' => 38.4227
  1349. ],
  1350. [
  1351. 'area_id' => 130927,
  1352. 'area_pid' => 130900,
  1353. 'area_name' => '南皮县',
  1354. 'lng' => 116.702,
  1355. 'lat' => 38.0411
  1356. ],
  1357. [
  1358. 'area_id' => 130928,
  1359. 'area_pid' => 130900,
  1360. 'area_name' => '吴桥县',
  1361. 'lng' => 116.385,
  1362. 'lat' => 37.6255
  1363. ],
  1364. [
  1365. 'area_id' => 130929,
  1366. 'area_pid' => 130900,
  1367. 'area_name' => '献县',
  1368. 'lng' => 116.127,
  1369. 'lat' => 38.1923
  1370. ],
  1371. [
  1372. 'area_id' => 130930,
  1373. 'area_pid' => 130900,
  1374. 'area_name' => '孟村回族自治县',
  1375. 'lng' => 117.104,
  1376. 'lat' => 38.0534
  1377. ],
  1378. [
  1379. 'area_id' => 130981,
  1380. 'area_pid' => 130900,
  1381. 'area_name' => '泊头市',
  1382. 'lng' => 116.578,
  1383. 'lat' => 38.0836
  1384. ],
  1385. [
  1386. 'area_id' => 130982,
  1387. 'area_pid' => 130900,
  1388. 'area_name' => '任丘市',
  1389. 'lng' => 116.103,
  1390. 'lat' => 38.7112
  1391. ],
  1392. [
  1393. 'area_id' => 130983,
  1394. 'area_pid' => 130900,
  1395. 'area_name' => '黄骅市',
  1396. 'lng' => 117.339,
  1397. 'lat' => 38.3706
  1398. ],
  1399. [
  1400. 'area_id' => 130984,
  1401. 'area_pid' => 130900,
  1402. 'area_name' => '河间市',
  1403. 'lng' => 116.099,
  1404. 'lat' => 38.4455
  1405. ]
  1406. ]
  1407. ],
  1408. [
  1409. 'area_id' => 131000,
  1410. 'area_pid' => 130000,
  1411. 'area_name' => '廊坊市',
  1412. 'lng' => 116.714,
  1413. 'lat' => 39.5292,
  1414. 'son' => [
  1415. [
  1416. 'area_id' => 131002,
  1417. 'area_pid' => 131000,
  1418. 'area_name' => '安次区',
  1419. 'lng' => 116.703,
  1420. 'lat' => 39.5206
  1421. ],
  1422. [
  1423. 'area_id' => 131003,
  1424. 'area_pid' => 131000,
  1425. 'area_name' => '广阳区',
  1426. 'lng' => 116.711,
  1427. 'lat' => 39.5228
  1428. ],
  1429. [
  1430. 'area_id' => 131022,
  1431. 'area_pid' => 131000,
  1432. 'area_name' => '固安县',
  1433. 'lng' => 116.299,
  1434. 'lat' => 39.4383
  1435. ],
  1436. [
  1437. 'area_id' => 131023,
  1438. 'area_pid' => 131000,
  1439. 'area_name' => '永清县',
  1440. 'lng' => 116.501,
  1441. 'lat' => 39.3207
  1442. ],
  1443. [
  1444. 'area_id' => 131024,
  1445. 'area_pid' => 131000,
  1446. 'area_name' => '香河县',
  1447. 'lng' => 117.006,
  1448. 'lat' => 39.7613
  1449. ],
  1450. [
  1451. 'area_id' => 131025,
  1452. 'area_pid' => 131000,
  1453. 'area_name' => '大城县',
  1454. 'lng' => 116.654,
  1455. 'lat' => 38.7053
  1456. ],
  1457. [
  1458. 'area_id' => 131026,
  1459. 'area_pid' => 131000,
  1460. 'area_name' => '文安县',
  1461. 'lng' => 116.458,
  1462. 'lat' => 38.8732
  1463. ],
  1464. [
  1465. 'area_id' => 131028,
  1466. 'area_pid' => 131000,
  1467. 'area_name' => '大厂回族自治县',
  1468. 'lng' => 116.989,
  1469. 'lat' => 39.8865
  1470. ],
  1471. [
  1472. 'area_id' => 131081,
  1473. 'area_pid' => 131000,
  1474. 'area_name' => '霸州市',
  1475. 'lng' => 116.392,
  1476. 'lat' => 39.1257
  1477. ],
  1478. [
  1479. 'area_id' => 131082,
  1480. 'area_pid' => 131000,
  1481. 'area_name' => '三河市',
  1482. 'lng' => 117.072,
  1483. 'lat' => 39.9836
  1484. ]
  1485. ]
  1486. ],
  1487. [
  1488. 'area_id' => 131100,
  1489. 'area_pid' => 130000,
  1490. 'area_name' => '衡水市',
  1491. 'lng' => 115.666,
  1492. 'lat' => 37.7351,
  1493. 'son' => [
  1494. [
  1495. 'area_id' => 131102,
  1496. 'area_pid' => 131100,
  1497. 'area_name' => '桃城区',
  1498. 'lng' => 115.675,
  1499. 'lat' => 37.735,
  1500. ],
  1501. [
  1502. 'area_id' => 131121,
  1503. 'area_pid' => 131100,
  1504. 'area_name' => '枣强县',
  1505. 'lng' => 115.726,
  1506. 'lat' => 37.5103
  1507. ],
  1508. [
  1509. 'area_id' => 131122,
  1510. 'area_pid' => 131100,
  1511. 'area_name' => '武邑县',
  1512. 'lng' => 115.887,
  1513. 'lat' => 37.8018
  1514. ],
  1515. [
  1516. 'area_id' => 131123,
  1517. 'area_pid' => 131100,
  1518. 'area_name' => '武强县',
  1519. 'lng' => 115.982,
  1520. 'lat' => 38.0414
  1521. ],
  1522. [
  1523. 'area_id' => 131124,
  1524. 'area_pid' => 131100,
  1525. 'area_name' => '饶阳县',
  1526. 'lng' => 115.726,
  1527. 'lat' => 38.2353
  1528. ],
  1529. [
  1530. 'area_id' => 131125,
  1531. 'area_pid' => 131100,
  1532. 'area_name' => '安平县',
  1533. 'lng' => 115.519,
  1534. 'lat' => 38.2339
  1535. ],
  1536. [
  1537. 'area_id' => 131126,
  1538. 'area_pid' => 131100,
  1539. 'area_name' => '故城县',
  1540. 'lng' => 115.971,
  1541. 'lat' => 37.3477
  1542. ],
  1543. [
  1544. 'area_id' => 131127,
  1545. 'area_pid' => 131100,
  1546. 'area_name' => '景县',
  1547. 'lng' => 116.269,
  1548. 'lat' => 37.6926
  1549. ],
  1550. [
  1551. 'area_id' => 131128,
  1552. 'area_pid' => 131100,
  1553. 'area_name' => '阜城县',
  1554. 'lng' => 116.144,
  1555. 'lat' => 37.8688
  1556. ],
  1557. [
  1558. 'area_id' => 131181,
  1559. 'area_pid' => 131100,
  1560. 'area_name' => '冀州市',
  1561. 'lng' => 115.579,
  1562. 'lat' => 37.5508
  1563. ],
  1564. [
  1565. 'area_id' => 131182,
  1566. 'area_pid' => 131100,
  1567. 'area_name' => '深州市',
  1568. 'lng' => 115.56,
  1569. 'lat' => 38.0011
  1570. ]
  1571. ]
  1572. ]
  1573. ]
  1574. ]
  1575. ];
  1576. //循环
  1577. foreach($arr as $province){
  1578. echo $province['area_name']."<br>";
  1579. foreach($province['son'] as $city){
  1580. echo '--'.$city['area_name']."<br>";
  1581. foreach($city['son'] as $district){
  1582. echo '-----'.$district['area_name']."<br>";
  1583. }
  1584. }
  1585. }
  • 运行结果
声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议