array_diff_assoc

PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
array_diff_assoc - Computes the difference of arrays with additional index check

Example #1 array_diff_assoc example

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

Example #2 array_diff_assoc example

Result: Array ( [0] => 0 [1] => 1 )
PHP Version:


Example #3 of array_diff_assoc

PHP Version:


Function array_diff_assoc:

Arrays Functions

Most used PHP functions