Re: [PHP4BETA] A (Hopefully) simple question *gulp*
| From: | David Robley | Date: | Fri, 28 Apr 2000 02:31:03 +0000 |
| Subject: | Re: [PHP4BETA] A (Hopefully) simple question *gulp* | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14126@lists.php.net to get a copy of this message | ||
On 28 Apr, Bradley wrote:
> Also, while I'm getting the gist of what you're saying, at the risk of
> sounding like an idiot I'd appreciate a little clarification on the
> following line:
>
>> display. Then, on each row, test the counter value mod 2. If the result
>
> "mod 2"? As in multiplied by 2? If so, I don't understand how a certain
> number would return 0. I think if you explain this bit to me I've already
> got the rest mapped out in my head.
>
> Cheers,
>
> Bradley
Sorry, that's a bit shorthand. I mean the modulus, which is the
leftover, or remainder after you divide the counter by two (counter
modulus 2). In this case, the leftover can only be 0 or 1. And before
you ask, the modulus operator is %
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA