Menu Samaritan's Purse

ARRAY_INTERSECT_UASSOC

Computes the intersection of arrays with additional index check, compares indexes by a callback function

SYNTAX

array_intersect_uassoc ( array $array1 , array $array2 [, array $... ], callable $key_compare_func ) : array

PARAMETERS

array1

The array with master values to check.

array2

An array to compare values against.

...

A variable list of arrays to compare.

key_compare_func

The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.

RETURN

Returns the values of array1 whose values exist in all of the arguments.

EXAMPLES

ARRAY1 ARRAY2 KEY_COMPARE_FUNC

Array
(
    [a] => 0
)

...

Array
(
    [a] => 0
)

PHP