Name

array_intersect_key

Synopsis

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

Returns an array consisting of every element in array1 whose keys also exist in every other array.

Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.