|
array_diffComputes the difference of arrays Description
array array_diff(array
$array, array ...$arrays)
Compares Parameters
Return Values
Returns an array containing all the entries from
Changelog
Examples
Example #1 array_diff example Multiple occurrences in $array1 are all treated the same way. This will output :
Array
(
[1] => blue
)
Two elements are considered equal if and only if
Example #2 array_diff example with non-matching types To use an alternate comparison function, see array_udiff. Notes
See Also
|