Page 1 of 1

How to display unique string variables?

Posted: Tue Sep 20, 2005 9:34 pm
by seahorse123
:?: Is there a function in php to remove the duplicate string variables, for example there is "abcd,ab,cd,abc,abc", how to change it to "abcd,ab,cd,abc"?thanks.

Posted: Tue Sep 20, 2005 9:37 pm
by josh
look at the array functions

Edit: hint, array_unique()

Posted: Tue Sep 20, 2005 9:45 pm
by seahorse123
Thanks very much, jshpro2.