note 11460 added to array_unique
| From: | wloske at yahoo dot de | Date: | Wed, 21 Feb 2001 17:23:40 +0000 |
| Subject: | note 11460 added to array_unique | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11362@lists.php.net to get a copy of this message | ||
I hope it is not too basic but one might ask: So how do I get those new values without empty sets ?
The simple answer:
$new_array = array_values(array_unique($array);
http://www.php.net/manual/en/function.array-unique.php