Answers for "if divisible by 4 php"

PHP
5

php is divisible by

if($number % 15 == 0)  {
    echo "BY3 AND 5";
} elseif ($number % 5 == 0) {
    echo "BY5";
} elseif ($number % 3 == 0) {
    echo "BY3";
}
Posted by: Guest on January-03-2020
1

php if divisible by 30

if ($variable % 30 == 0) {
    echo 'This number is divisible by 30.';
};
Posted by: Guest on July-12-2019

Browse Popular Code Answers by Language