php取出数组中相同的值返回

array_intersect($arr1 $arr2);

返回相同值

key = arr1的key 回覆盖arr2的key

猜你喜欢

转载自blog.csdn.net/qq_42030417/article/details/82843397