array_intersect的对立面? [英] Opposite of array_intersect?
本文介绍了array_intersect的对立面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一个内置函数来获得阵列1中的所有成员不阵列存在2?结果
我知道如何做到这一点编程,如果有一个内置的功能,做同样的只是在想。所以,请没有code的例子。
Is there a built-in function to get all members of array 1 which do not exist in array 2?
I know how to do it programatically, only wondering if there is a built-in function that does the same. So please, no code examples.
推荐答案
这听起来像的 和array_diff
。
That sounds like a job for array_diff
.
返回包含数组所有
在array1不在条目
present任何其他阵列。
Returns an array containing all the entries from array1 that are not present in any of the other arrays.
这篇关于array_intersect的对立面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文