Array Difference

Find elements in the first array that are not present in the second array.

Code

General
array_values(array_diff($arr1, $arr2));

Parameters

First array

Second array

Server

More PHP Snippets