framework
framework copied to clipboard
[12.x] Add diff() to Arr helper
Why can't we just use array_diff()?
In most cases, you absolutely can. But there's one case where the function fails: When the arrays contain array values. This can be circumvented with a custom diffing callback, using the spaceship operator