You can check simply by using below code: if($num%3==0){ echo "the number is multiple of 3"; }
if ($count % 20 != 0)
if (($count % 10) == 0) # it's == not != because % returns remainder.