← All docs

array_uintersect()

Computes the intersection of arrays using a callback comparator.

array_uintersect()

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

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