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
$count
You can do it like so:
if($count % 20 != 0)
If you don't want zero to be excluded:
if ($count % 20 != 0 || $count == 0)
if ($count % 20 != 0)
if ($count % 20 != 0) { // $count is not a multiple of 20 }