复制代码 代码如下:
$cityname = array_flip($city_DB[name]); //把数组的键和值交换形成了新的数组
$city_name = array_search($city_id,$cityname,true); //查找值取得键
http://www.bkjia.com/PHPjc/323421.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/323421.htmlTechArticle复制代码 代码如下: $cityname = array_flip($city_DB[name]); //把数组的键和值交换形成了新的数组 $city_name = array_search($city_id,$cityname,true); //查找值取...