note 24831 added to function.array-unique
| From: | php at hp-site dot dk | Date: | Thu, 29 Aug 2002 15:15:23 +0000 |
| Subject: | note 24831 added to function.array-unique | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35989@lists.php.net to get a copy of this message | ||
Try this:
array_flip(array_flip($array));
It gives the same result as the old array_unique()
--
http://www.php.net/manual/en/function.array-unique.php
http://master.php.net/manage/user-notes.php?action=edit+24831
http://master.php.net/manage/user-notes.php?action=delete+24831
http://master.php.net/manage/user-notes.php?action=reject+24831