array_intersect - chung-leong/qb GitHub Wiki
array_intersect - Computes the intersection of arrays
array array_intersect( array $array1, array $array2 [, $... ] )
array_intersect() compares array1 against array2 and returns an array containing values present in both. It is capable of handling multidimensional arrays, provided the number of elements in each sub-array is known as compile time.
Parameters:
array1 - The array to compare from.
array2 - The array to compare against.
... - Additional arrays to compare against.
Return Value:
A variable-length array containing all the element from array1 that are present in all of the other arrays.
Version
1.4 and above.