At 3:32 PM +0200 6/2/06, Jonas Rosling wrote: >Hi all, >is there any easy why to check if a value is odd or not? Jonas: echo($num & 1); This produces 1 for odd and 0 for even. tedd -- ------------------------------------------------------------------------------------ http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php