note 70270 deleted from function.array-unique by danbrown
| From: | danbrown@php.net | Date: | Thu, 06 Nov 2008 14:55:58 +0000 |
| Subject: | note 70270 deleted from function.array-unique by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146220@lists.php.net to get a copy of this message | ||
Note Submitter: geuis dot teses at gmail dot com
----
Sorry to repost this but it was helpful and took a while to find all the way down.
Ric
05-Apr-2005 09:44
A very simple way of getting rid of duplicate entries and re-indexing with key starting at 0:
$temp=array_unique($main);
$main=array_values($temp);