* and then Jesse Castro declared....
> [snip]
>  <?php
>   $count=0;
>   foreach($someArray as $someVal) {
>     if($count is divisible by 20 exactly) {
>       // do some stuff
>     }
>     //do some stuff
>   }
> ?>
> [/snip]
> 
> if($count is divisible by 20 exactly)
> Can be written as
> If ($count %20 == 0)
> % is the modulus operator and works like the division 
> operator, only it returns the remainder instead of the 
> quotient.

Ahhh.. thankyou very much jesse, that's great!

-- 
Nick W

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to