View Single Post
  #2 (permalink)  
Old 07-23-2008, 06:24 AM
curtiss's Avatar
curtiss curtiss is offline
Moderator
 
Join Date: May 2003
Posts: 1,468
That's what the modulus operator (%) is for. The modulus divides the first number by the second number and returns only the remainder. Therefore, your statement should look like:
PHP Code:
if($i%10 !== 0) { 
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote