How can I remove ALL duplicates from an array in PHP?

xXx15

New Member
First of all, I'd like to point out to all you duplicate question hunters that this question does not fully answer my question.Now, I've got an array. We'll say that the array is \[code\]array(1, 2, 2, 3, 4, 3, 2)\[/code\]I need to remove the duplicates. Not just one of the duplicates, but all, so that the result will be \[code\]array(1, 4)\[/code\]I looked at array_unique(), but that will only result in \[code\]array(1, 2, 3, 4)\[/code\]Any ideas?
 
Back
Top