ESR
0
Q:

How to check even or odd number in php

$num = 34;
if ($num % 2 == 0) {
  print "It's even";
}
3
$num=85;
if($num%2 ==0){
echo "this is even number";

}else{
echo "this is odd number";
}
0

New to Communities?

Join the community