是否有内置函数可以获取数组 1 中不存在于数组 2 中的所有成员?
我知道如何以编程方式做到这一点,只是想知道是否有一个内置函数可以做到这一点。所以拜托,没有代码示例。
最佳答案
这听起来像是 array_diff
的工作.
Returns an array containing all the entries from array1 that are not present in any of the other arrays.
关于php - array_intersect 的对面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5582242/