Apparently array_diff doesn't like to compare arrays of arrays. Hmm. Wonder what I should be using instead.

Follow

Answer: array_udiff() plus the spaceship operator.

Sign in to participate in the conversation
PHP Community on Mastodon

Open source. Open community. We are dedicated to building and enriching the PHP community.