delarge
4/29/2016 - 8:37 AM

PHP check is number is odd/even

PHP check is number is odd/even

$number = 20;
if ($number % 2 == 0) {
  print "It's even";
}