说明
array_intersect_key ( array$array1
, array $array2
[, array $...
] ) : array
array_intersect_key() 返回一个数组,该数组包含了所有出现在 array1
中并同时出现在所有其它参数数组中的键名的值。无铁芯直线电机
参数
array1
-
The array with master keys to check.
array2
-
An array to compare keys against.
...
-
A variable list of arrays to compare.
返回值
Returns an associative array containing all the entries of array1
which have keys that are present in all arguments.