Posted By

Wardy on 01/22/09


Tagged

php number check odd even


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


PHP Check if number is odd


 / Published in: PHP
 

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

  1. function checkNum($num){
  2. return ($num%2) ? TRUE : FALSE;
  3. }

Report this snippet  

You need to login to post a comment.