[thelist] Duplicates in php array
Mike Migurski
mike at saturn5.com
Sat Dec 7 01:38:01 CST 2002
>I have a php array that has several duplicate records in it. I need to
>create a new array
>that will only hold unique entries from the first array. Array's are not
>my strong point.
>Does anyone have any php code that does this?
$new_array = array_unique($old_array);
http://php.net/manual is my friend for life.
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
http://www.saturn5.com/mike/contact.html
"Freedom! Horrible, horrible freedom!"
More information about the thelist
mailing list