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
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): not available inside eval’d code.
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how array_udiff is implemented in the compiler, see the internals page.