Return to Snippet

Revision: 11059
at January 22, 2009 05:55 by Wardy


Initial Code
function checkNum($num){
  return ($num%2) ? TRUE : FALSE;
}

Initial URL
http://www.phpro.org/examples/Check-if-number-is-Odd-or-Even.html

Initial Description

                                

Initial Title
PHP Check if number is odd

Initial Tags
php, number

Initial Language
PHP