in reply to Re: Help with removing duplicates in arrayin thread Help with removing duplicates in array
The fourth line of the OP's code shows that s/he already tried that.