array_diff

PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
array_diff - Computes the difference of arrays

Example #1 array_diff example

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

Example #2 array_diff example with non-matching types

PHP Version:


Example #3 of array_diff

PHP Version: