getting number of unique values out of array

From: Date: Sun, 12 Sep 2004 17:51:23 +0000
Subject: getting number of unique values out of array
Groups: php.general 
Request: Send a blank email to php-general+get-196453@lists.php.net to get a copy of this message
Hi there, I am wondering how to count the number of unique values inside an array. For example, there is an array named country and it containes 3 country names, where Germany is doubled. So I would like to know that there are 2 unique country names in the array. Has anybody an idea how to achive that? Thanx for any help on that, Merlin

« previous php.general (#196453) next »