• 本帖最后由 amo 于 2013-7-29 03:46 编辑 *

php- Array

  • (
  • => Array
  • (
  • => 1089
  • )
  • - => city
  • => 1
  • => Array
  • (
  • [0] => Array
  • (
  • => 0101
  • => 0100
  • => 北京
  • => 北京
  • => 53
  • => B
  • => BJ
  • => BeiJing
  • => 2550
  • [baidu_lat] => 39.929986
  • [baidu_lng] => 116.395645
  • )
  • - [1] => Array
  • (
  • => 0201
  • => 0200
  • => 上海
  • => 上海
  • => 321
  • => S
  • => SH
  • => ShangHai
  • => 2247
  • [baidu_lat] => 31.249162
  • [baidu_lng] => 121.487899
  • )
  • - [2] => Array
  • (
  • => 2001
  • => 2000
  • => 广东
  • => 广州
  • => 80
  • => G
  • => GZ
  • => GuangZhou
  • => 1226
  • [baidu_lat] => 23.120049
  • [baidu_lng] => 113.30765
  • )复制代码这个代码是http://localhost/city.php

现在要根据 http://localhost/city.php?pName=北京 这个url里的 pName=北京 这个获取北京的cid怎么写代码?