Re: array_count_values
| From: | elias | Date: | Thu, 19 Apr 2001 18:21:43 +0000 |
| Subject: | Re: array_count_values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49331@lists.php.net to get a copy of this message | ||
dunno, what doesn't work exactly
but what if you try:
$array = split ("\n", $contents);
$stuff = array_count_values ($array);
echo $stuff["nuts"];
-elias
http://www.kameelah.org/eassoft
""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