PHP array_diff() Function
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
Enjoying these tutorials?