note 11857 added to function.array-unique.php
| From: | jllamas at palaciohierro dot com dot mx | Date: | Fri, 09 Mar 2001 23:38:48 +0000 |
| Subject: | note 11857 added to function.array-unique.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12142@lists.php.net to get a copy of this message | ||
There's a small mistake in wloske@yahoo.de last post. It's missing a ')' at the
end of the statement. It should be
$new_array = array_values(array_unique($array));
http://www.php.net/manual/fr/function.array-unique.php