Re: array_count_values

From: Date: Thu, 19 Apr 2001 14:02:17 +0000
Subject: Re: array_count_values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49370@lists.php.net to get a copy of this message
> echo $stuff[nuts]; It should work, but it's becomg a depreciated practice and may break in future versions. Always quote a non-numeric array key. Beyond that, use print_r($array) and see if there is a "nuts" key in there at all. -- Plutarck Should be working on something... ...but forgot what it was. ""Matthew Luchak"" <MLuchak@Kaydara.com> wrote in message news:6D3215FF15393442891CAA42DEC51E49390B@primavera.kaydara.com... can someone give a quick hint as to why this does not work: $array = split ("\n", $contents); $stuff = array_count_values ($array); echo $stuff[nuts]; or even: $array = array (split ("\n", $contents)); $stuff = array_count_values ($array); echo $stuff[nuts]; thnx... matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#49370) next »