php condition on remainder code example
Example 1: php if divisible by 30
if ($variable % 30 == 0) {
echo 'This number is divisible by 30.';
};
Example 2: function to find the mod of a number in php
PHP fmod() Function
if ($variable % 30 == 0) {
echo 'This number is divisible by 30.';
};
PHP fmod() Function