View Single Post
Old 08-12-2010, 02:54 PM   #3 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

Yep, the modulo operator returns the remainder of division of one number by another.

The above code could be condensed slightly. Because PHP treats return values of anything other than False/Null or '0' etc as true, we can just do this:

PHP Code:
if($i 2)
{

__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote