← All docs
array_udiff()
Returns entries from the first of exactly two arrays whose values are absent from the second according to an integer-cast callback comparator, preserving keys.
array_udiff()
function array_udiff(array $array1, array $array2, callable $callback): array
Returns entries from the first of exactly two arrays whose values are absent from the second according to an integer-cast callback comparator, preserving keys.
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.