:)
foreach (array_count_values ($names) as $name=>$count)
Thanks M! :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
foreach (array_count_values ($names) as $name=>$count)
-^^
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 9:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Access Array Values?
I knew there
I knew there was areason why I stopped Perling :) THANKS!
How do I disassemble its values? How would I foreach? Something like this?
foreach (array_count_values ($names) as $name and $count) <-??
{
echo"".$name." (".$count.")`;
}
bill (3)
john (3)
mary (4)
http://www.php.net/manual/en/f
3 matches
Mail list logo