共有1【array_search】相关的内容

php根据字段合并两个数组,将b数组aid跟a中id 相同的合并到一起,用array_search,array_column进行二维数组搜索,搜索到的话合并,具体代码如下: $a = array( array("id"= "1","name"= "aaa","switch"= "on"), array("id"= "2","name"= "aaa","switch"= "on"), array("id"= "3","name"= "a