PHP array_uintersect_uassoc() Function

Compare the keys and values of two arrays (using two user-defined functions for comparison) array_uintersect_uassoc — Computes the intersection of arrays with additional index check, compares data and indexes by separate callback functions

Example -

Example -