(PHP 5, PHP 7, PHP 8)
array_diff_uassoc — Computes the difference of arrays with additional index check which is performed by a user supplied callback function
$array