Array duplicates



Hello,

In the array abc:

abc[0] = "john"
abc[1] = "jack"
abc[2] = "john"
abc[3] = "peter"

Is there an easy way to check for "john" existence before inserting
abc[2]?

If not, any idea how to remove either duplicates? that is abc[0] or
abc[2] in the above array?

Thanks in advance.

Maya

.


Loading