narue has already given you the answer.
i'm not telling you anything she hasn't already. but maybe i can break it down for you into easy-to-chew bites.
1 -- create a new array.
2 -- start indexing existing array at the first element
3 -- if the existing element does not exist within the new array,
-- 3a -- then copy the existing element to the new array
4 -- move to the next existing array element and repeat at (3)
there are other ways to do it, but it just does not get any more simple than this.
.