← All docs

array_diff_assoc()

Computes the difference of arrays with additional index check.

array_diff_assoc()

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

Computes the difference 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_diff_assoc is implemented in the compiler, see the internals page.