PHP : INT is odd or even


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // INT : odd or even > return TRUE or FALSE
  2. function neo_is_odd( $nb ) {
  3. return $nb % 2 == 0 ? false:true;
  4. }

URL: http://www.giacomel.fr

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.