array_intersect

Example

 array array_intersect ( array $array1 , array $array2 [, array $ ... ] ) 

Description

array_intersect() returns an array containing all the values of array1 that are present in all the arguments. Note that keys are preserved.

Return Values

Returns an array containing all of the values in array1 whose values exist in all of the parameters.