Re: distinct element from array
| From: | George Nicolae | Date: | Sun, 06 Jan 2002 18:19:26 +0000 |
| Subject: | Re: distinct element from array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79614@lists.php.net to get a copy of this message | ||
array_keys(array_count_values($foo));
--
Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com
"Kancha ." <kancha2np@yahoo.com> wrote in message
news:20020106114158.13382.qmail@web14906.mail.yahoo.com...
> An array contains various values eg: list of fruits.
> Now i want to retrieve only unique fruits from the
> array. The array may contain duplicate names. How can
> i achieve this?
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/