SV: [PHP] If value is odd or not
| From: | Jonas Rosling | Date: | Fri, 02 Jun 2006 13:40:10 +0000 |
| Subject: | SV: [PHP] If value is odd or not | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237259@lists.php.net to get a copy of this message | ||
-----Ursprungligt meddelande-----
Fran: Eric Mol [mailto:eric.mol@sod.nl]
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:webmaster@gamearena.se]
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