The fourth line of the OP's code shows that s/he already tried that.
In reply to Re^2: Help with removing duplicates in array
by Anonymous Monk
in thread Help with removing duplicates in array
by beanscake
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |