Name
array_diff_assoc
Synopsis
array array_diff_assoc(arrayarray1
, arrayarray2
[, ... arrayarrayN
])
Returns an array containing all the values in array1
that are not present in any of the
other arrays. Unlike array_diff(
)
, 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.