array_diff_uassoc is a function used in PHP to compare two arrays. It not only compares the values of the array, but also compares the keys of the array. In some cases, we may want to use a custom comparison function when comparing. This custom comparison function can often add additional logic when comparing array values and keys. However, if you need to use external variables in comparison functions (such as global variables or parameters passed to the function), you need to pay special attention to how to correctly refer to these external variables in a custom function.
array_diff_uassoc