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";
}
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";
}
php odd or even
$num = 34;
if ($num % 2 == 0) {
print "It's even";
}
even odd php
$n=122;
if($n%2==0)
{
echo "$n is even number";
}
else{
echo"$n is odd number";
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us