array_intersect

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

説明

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

戻り値

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