framework icon indicating copy to clipboard operation
framework copied to clipboard

[12.x] Add diff() to Arr helper

Open shaedrich opened this issue 6 months ago • 0 comments

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

shaedrich avatar Jun 16 '25 23:06 shaedrich