PHP, если делится на 30
if ($variable % 30 == 0) {
echo 'This number is divisible by 30.';
};
Grepper
if ($variable % 30 == 0) {
echo 'This number is divisible by 30.';
};