/ Published in: PHP
URL: http://www.phpro.org/examples/Check-if-number-is-Odd-or-Even.html
Expand |
Embed | Plain Text
function checkNum($num){ return ($num%2) ? TRUE : FALSE; }
You need to login to post a comment.
Wardy on 01/22/09
1 person have marked this snippet as a favorite
URL: http://www.phpro.org/examples/Check-if-number-is-Odd-or-Even.html
function checkNum($num){ return ($num%2) ? TRUE : FALSE; }
You need to login to post a comment.