PHP array_diff_uassoc() Function

The array_diff_uassoc() function is used to compare two or more arrays with an additional user supplied function. The function compares array1 against array2 and returns the difference. Unlike array_diff() the array keys are used in the comparison.It compares array1 against array2 and returns the difference. Unlike array_diff() the array keys are used in the comparison.

array_diff_uassoc — Computes the difference of arrays with additional index check which is performed by a user supplied callback function

Example -