Posted By

leond on 11/02/10


String integer odd even

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Check if int or string variable is odd

 / Published in: PHP

Checks if a integer or string variable contains odd number. Returns true on odd and false on even.

  1. function is_odd( $num ){
  2. return(is_numeric($num)&($num&1));
  3. }

Report this snippet  


RSS Icon Subscribe to comments
Posted By: on January 29, 2019

download best software to android root use app kingo or 360 for pc mac ios windows 10 8 1 7 xp computer sancomonline

You need to login to post a comment.