Re: Number of duplicates in an array?

From: Date: Mon, 18 Aug 2008 14:33:57 +0000
Subject: Re: Number of duplicates in an array?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-278281@lists.php.net to get a copy of this message
Best way to remove duplicates from an array is to use the built in PHP function array_unique(). As for counting the number of times each unique value occurs, use array_count_values(). Ash www.ashleysheridan.co.uk

« previous php.general (#278281) next »