PHP array_uintersect_uassoc() functionThe array_uintersect_uassoc( ) is an inbuilt function of PHP. The array_uintersect_uassoc() function uses two user-defined functions to compare the keys and values of two or more arrays, and returns the matches. This function was introduced in PHP 5.0. SyntaxParameter
ReturnsThe array_uintersect_uassoc( ) function returns an array containing the entries from array1 that are present in all the arguments. Important note:function_key and function_value must return an integer <,=, or > than 0 if the first argument is <,=,or > than the second argument. Example 1Output: Array ( [a] => Apple [b] => Ball ) Example 2Output: Array ( [a] => PHP [b] => JAVA ) Example 3Output: Array ( [1] => java [3] => PHP ) Example 4Output: Array ( [a] => java [b] =>php )
Next TopicPHP Array Functions
|