Answers for "write a code to check whether 15 is an odd number in php"

PHP
4

How to check even or odd number in php

$num = 85;
if($num % 2 == 0){
echo "this is even number";

}else{
echo "this is odd number";
}
Posted by: Guest on August-24-2020
1

php check if int is odd

$number = 15;
if ($number % 1 == 0) {
    echo "It's even";
}else{
    echo "oneven";
}
Posted by: Guest on January-17-2021

Code answers related to "write a code to check whether 15 is an odd number in php"

Browse Popular Code Answers by Language