Menu Riverview Church

ARRAY_UINTERSECT_ASSOC

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

SYNTAX

array_uintersect_assoc ( array $array1 , array $array2 [, array $... ], callable $value_compare_func ) : array

PARAMETERS

array1

The first array.

array2

The second array.

value_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 an array containing all the values of array1 that are present in all the arguments.

EXAMPLES

ARRAY1 ARRAY2 VALUE_COMPARE_FUNC

Array
(
    [a] => 0
)

...

Array
(
    [a] => 0
)

PHP