php if divisible by 30
snippet in php

php if divisible by 30

user3364

if ($variable % 30 == 0) {
    echo 'This number is divisible by 30.';
};