← All docs

array_intersect_key()

Computes the intersection of arrays using keys for comparison.

array_intersect_key()

function array_intersect_key(array $array, ...$arrays): array

Computes the intersection of arrays using keys for comparison.

Parameters:

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

Returns: array

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

Internals

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