array_intersect

PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
array_intersect - Computes the intersection of arrays

Example #1 array_intersect example

Result: Array ( [a] => green [0] => red )
PHP Version:


Example #2 of array_intersect

PHP Version:


Function array_intersect:

Arrays Functions

Most used PHP functions