array_diff_uassoc

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
Manual
Code Examples

Example #1 array_diff_uassoc example

Result: Array ( [b] => brown [c] => blue [0] => red )
PHP Version: