|
array_intersectComputes the intersection of arrays Description
array array_intersect
( array
$array1
, array $array2
[, array $...
] )
array_intersect returns an array
containing all the values of Parameters
Return Values
Returns an array containing all of the values in
Examples
Example #1 array_intersect example
<?phpThe above example will output:
Array
(
[a] => green
[0] => red
)
Notes
See Also
|