array_uintersect_uassoc

PHP 5, PHP 7, PHP 8
array_uintersect_uassoc - Computes the intersection of arrays with additional index check, compares data and indexes by separate callback functions
Manual
Code Examples

Example #1 array_uintersect_uassoc example

Result: Array ( [a] => green [b] => brown )
PHP Version: