Name
array_diff
Synopsis
array array_diff(arrayarray1
, arrayarray2
[, ... arrayarrayN
])
Returns an array containing all of the values from the first array that are not present in any of the other arrays. The keys of the values are preserved.
Get Programming PHP 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.