PHP array_uintersect() functionThe array_uintersect() is an inbuilt function in PHP. It is used to compute the intersection of two or more arrays depending on the values. The first array values are compared with all the other arrays with the help of an user-defined function, and the matches are returned. This function was introduced in PHP 5.0. SyntaxParameters
ReturnThe array_uintersect( ) function returns an array containing the entries from array1 that are present in all of the other arrays. Example 1Output: Array ( [d] =>jmeter ) Example 2Output: Array ( [a] => java [b] => c ) Example 3Output: Array ( [a] => java [b] =>php [0] => python ) Example 4Output: Array ( [1] => 53 [2] => 43 )
Next TopicPHP Array Functions
|