array_intersect_key

Example

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

Description

array_intersect_key() returns an array containing all the entries of array1 which have keys that are present in all the arguments.

Return Values

Returns an associative array containing all the entries of array1 which have keys that are present in all arguments.