PHP array_uintersect_assoc() Function

Compare the keys and values of two arrays (using a built-in function to compare the keys and a user-defined function to compare the values) array_uintersect_assoc — Computes the intersection of arrays with additional index check, compares data by a callback function

Example -

Example -