Re: Printing return value of array_count_values?

From: Date: Sat, 05 Jan 2002 12:53:10 +0000
Subject: Re: Printing return value of array_count_values?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79554@lists.php.net to get a copy of this message
array_count_values() returns an array using the values of the input array as keys and their frequency in input as values <? $array = array (1, "hello", 1, "world", "hello"); $a=array_count_values ($array); // returns array (1=>2, "hello"=>2, "world"=>1) while ($b = each($a)) echo $b[0]."=>".$b[1]." "; ?> -- Best regards, George Nicolae IT Manager ___________________ X-Playin - Professional Web Design www.x-playin.f2s.com "Daniel alsén" <d@mindbash.com> wrote in message news:CAEKINLACFJNGFHLDFBFIEANCAAA.d@mindbash.com... > Hi! > > How do i echo the return values of array_count_values? > > Regards > # Daniel Alsén | www.mindbash.com # > # d@mindbash.com | +46 704 86 14 92 # > # ICQ: 63006462 | +46 8 694 82 22 # > # PGP: http://www.mindbash.com/pgp/ # >

« previous php.general (#79554) next »