You can check simply by using below code: if($num%3==0){ echo "the number is multiple of 3"; }
if ($count % 20 != 0)