SV: If value is odd or not

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Ursprungligt meddelande-----
Fran: Eric Mol [mailto:eric.mol@xxxxxx]
Skickat: den 2 juni 2006 15:34
Till: 'Jonas Rosling'; 'PHP List'
Amne: RE:  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@xxxxxxxxxxxx] 
Verzonden: vrijdag 2 juni 2006 15:32
Aan: PHP List
Onderwerp:  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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux