Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array_intersect

PHP function array_intersect(array $array1, array $array2, array ...$_) int[]
-----------------------------------------------------------------------------
Computes the intersection of arrays
  
Parameters:
array--$array1--The array with main values to check.
array--$array2--An array to compare values against.
array--...$_--[optional]
Returns: an array containing all of the values in array1 whose values exist in all of the parameters.
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
1+6 =