Re: isodd() php5?
| From: | tedd | Date: | Tue, 30 Oct 2007 12:29:58 +0000 |
| Subject: | Re: isodd() php5? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263809@lists.php.net to get a copy of this message | ||
At 9:32 AM +0000 10/30/07, Hulf wrote:
Hi, Is there a built in function in PHP5 to determine if an integer is even or odd? RossTry: echo($integer & 1); 1 = odd, 0 = even. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com