note 11460 modified in function.array-unique by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 21:15:32 +0000 |
| Subject: | note 11460 modified in function.array-unique by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25482@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));
--was--
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