php小技巧 把数组的键和值交换形成了新的数组,查找值取得键 复制代码 代码如下: $cityname = array_flip($city_DB[name]); 把数组的键和值交换形成了新的数组 $city PHP编程 2022-04-05 134 点赞 2 评论 203 浏览