note 9289 added to array_unique
| From: | matthew_dean at hotmail dot com | Date: | Thu, 26 Oct 2000 11:04:20 +0000 |
| Subject: | note 9289 added to array_unique | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7013@lists.php.net to get a copy of this message | ||
Re: Useful comments from jllamas@bal.com.mx
If you are using a numerically indexed array and you want to make it unique but *with* consecutive
indices, you can use array_values(array_unique($myArray));
http://www.php.net/manual/function.array-unique.php