Re: If value is odd or not
| From: | John Nichel | Date: | Fri, 02 Jun 2006 13:58:22 +0000 |
| Subject: | Re: If value is odd or not | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237266@lists.php.net to get a copy of this message | ||
Jochem Maas wrote:
Jonas Rosling wrote:if ( is_int ( $value / 2 ) ) { // Even } :-p -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 jnichel@dotcomholdingsofbuffalo.comHi all, is there any easy why to check if a value is odd or not?ignore every answer that doesn't use the % operator.