Re: Is it odd or even???
| From: | Jon Rosenberg | Date: | Mon, 05 Mar 2001 20:19:11 +0000 |
| Subject: | Re: Is it odd or even??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42663@lists.php.net to get a copy of this message | ||
You could divide it by 2, odd numbers will always have a remainder even
umbers never will.
here are math functions, but none for odd/even that i see.
Jon
----- Original Message -----
From: "Brandon Orther" <brandon@webintellects.com>
To: "PHP User Group" <php-general@lists.php.net>
Sent: Monday, March 05, 2001 3:17 PM
Subject: [PHP] Is it odd or even???
> Hello,
>
> Is there an easy way to check and see if a number is odd or even?
>
> Thank you,
>
> --------------------------------------------
> Brandon Orther
> WebIntellects Design/Development Manager
> brandon@webintellects.com
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>