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?