array_udiff_uassoc

PHP 5, PHP 7, PHP 8
array_udiff_uassoc - Computes the difference of arrays with additional index check, compares data and indexes by a callback function
Manual
Code Examples

Example #1 array_udiff_uassoc example

Result: Array ( [0.1] => cr Object ( [priv_member:private] => 9 ) [0.5] => cr Object ( [priv_member:private] => 12 ) [0] => cr Object ( [priv_member:private] => 23 ) )
PHP Version: