Web Analytics

PHP array_diff() Function

ArrayPHP 4.0.1+

The array_diff() function compares arrays and returns the values in the first array that are not present in any of the other arrays.

Syntax

array_diff(array $array, array ...$arrays): array

Try It Online

Output
Click Run to execute your code