Re: Array help needed

From: Date: Thu, 18 Jan 2001 21:31:10 +0000
Subject: Re: Array help needed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35455@lists.php.net to get a copy of this message
Thanks. Didn't see that myself. Thanks for the help Chris At 10:28 AM 1/18/01, php3@developersdesk.com wrote:
Addressed to: CDitty <mail@redhotsweeps.com>
              php-general@lists.php.net
** Reply to note from CDitty <mail@redhotsweeps.com> Thu, 18 Jan 2001 06:58:22 -0600 I see someone else has another suggestion that might be better, using array_count(). You learn something new every day, which is why I watch this list... anyway, the thing I see in your code: while(list($index, $value) = each($dice)){ // Changed from $Input to
                      ^
$Output[$Value]++; }
              ^
$Value != $value I know my use of caps or not in this example sucks. I usually always use Caps On Each Word for my var names, but I am trying to switch to what appears to be the php standard, lower case everywhere. Sorry about that... Rick Widmer Internet Marketing Specialists http://www.developersdesk.com


« previous php.general (#35455) next »