Name
array_intersect_assoc
Synopsis
array array_intersect_assoc(arrayarray1
, arrayarray2
[, ... arrayarrayN
])
Returns an array containing all the values present in all of
the given arrays. Unlike array_intersect(
)
, both the keys and values must match to be considered
identical. The keys of the values are preserved.
Get Programming PHP, 2nd 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.