I know there is array_unique function, but I want to remove duplicates. Is there a built-in function or do I have to roll my own.
array_unique
Example input:
You want to remove any entries that have duplicates, so that you're left with only the entries that were unique in the list? Hmm it does sound like something you'll need to roll your own.