Re: Array help needed
| From: | php3 at developersdesk dot com | Date: | Thu, 18 Jan 2001 16:28:56 +0000 |
| Subject: | Re: Array help needed | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35376@lists.php.net to get a copy of this message | ||
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