-----Ursprungligt meddelande-----
Fran: Eric Mol [mailto:[EMAIL PROTECTED]
Skickat: den 2 juni 2006 15:34
Till: 'Jonas Rosling'; 'PHP List'
Amne: RE: [PHP] If value is odd or not


If ($var/2==round($var/2)){
  // not odd
}else{
  // odd
}

Greetings,
Eric

Thanks (all)!

-----Oorspronkelijk bericht-----
Van: Jonas Rosling [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 2 juni 2006 15:32
Aan: PHP List
Onderwerp: [PHP] If value is odd or not

Hi all,
is there any easy why to check if a value is odd or not?

Thanks // Jonas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to