Blogger Information
Blog 9
fans 0
comment 0
visits 6127
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Foreach循环遍历数组
空心菜博客
Original
1624 people have browsed it

一、遍历省市区数组

  1. Foreach循环:此循环用于遍历数组。对于循环中的每个计数器,都会分配一个数组元素,并将下一个计数器移动到下一个元素。
  • 代码列示

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

    二、用print_r()打印其中一个城市和区

    1. print_r($arr[1]['son']);//打印城市和区
    2. echo '<hr>';
  • 输出效果

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post