PHP array_uintersect() Function

Compare the values of two arrays (use a user-defined function to compare the values) array array_uintersect ( array array1, array array2 [, array ..., callback data_compare_func] ) array_uintersect() returns an array containing all the values of array1 that are present in all the arguments. The data is compared by using a callback function.

Example -

Example -