Find multiples of a number in PHP

Posted by dotty on Stack Overflow See other posts from Stack Overflow or by dotty
Published on 2010-05-11T10:30:30Z Indexed on 2010/05/11 10:34 UTC
Read the original article Hit count: 195

Filed under:
|
|

Hay i need help.

I want to find all muliples of a number in PHP.

I'm using something like this

if($count != 20 )

to work out if $count is not equal to 20.

but i also need this script to check if $count is not equal to 20,40,60,80,100,120,140,160 etc.

Any ideas? I think i need to use the modulus symbol (%), but i don't know.

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about modulus