Computes the difference of arrays with additional index check, compares data by a callback function.
Please note that this function only checks one dimension of a n-dimensional array. Of course you can check deeper dimensions by using, for example, array_udiff_assoc($array1, $array2, "some_comparison_func");.
The first array.
Arrays to compare against.
The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.callback(mixed$a,mixed$b ): int
array_udiff_assoc returns an array containing all the values from array that are not present in any of the other arguments. Note that the keys are used in the comparison unlike array_diff and array_udiff. The comparison of arrays' data is performed by using an user-supplied callback. In this aspect the behaviour is opposite to the behaviour of array_diff_assoc which uses internal function for comparison.