← All docs

array_intersect_assoc()

Computes the intersection of arrays with additional index check.

array_intersect_assoc()

function array_intersect_assoc(array $array, ...$arrays): mixed

Computes the intersection of arrays with additional index check.

Parameters:

  • $array (array)
  • ...$arrays — variadic: collects excess arguments into $arrays.

Returns: mixed

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how array_intersect_assoc is implemented in the compiler, see the internals page.