$num = 85; if($num % 2 == 0){ echo "this is even number"; }else{ echo "this is odd number"; }
$number = 15; if ($number % 1 == 0) { echo "It's even"; }else{ echo "oneven"; }
function odd($var) { return($var & 1); }