← All docs

array_udiff()

Computes the difference of arrays using a callback comparator.

array_udiff()

function array_udiff(array $array1, array $array2, callable $callback): array

Computes the difference of arrays using a callback comparator.

Parameters:

  • $array1 (array)
  • $array2 (array)
  • $callback (callable)

Returns: array

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

Internals

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