> Is there an easy way to check and see if a number is odd or even?

if( $num % 2 ) {
  echo "Odd";

} else {
  echo "Even";

}

Chris

Reply via email to