PHP 4.0 Bug #7307 Updated: New Feature: Function for checking odd Numbers?
| From: | derick@php.net | Date: | Wed, 18 Oct 2000 14:02:48 +0000 |
| Subject: | PHP 4.0 Bug #7307 Updated: New Feature: Function for checking odd Numbers? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35423@lists.php.net to get a copy of this message | ||
ID: 7307
Updated by: derick
Reported By: aheckmeier@bct-technology.com
Status: Closed
Bug Type: Feature/Change Request
Assigned To:
Comments:
The user told me that the following was adequate too:
function is_odd ($n)
{
return (($n%2)!=0);
}
function is_even ($n)
{
return (($n%2)==0);
}
Previous Comments:
---------------------------------------------------------------------------
[2000-10-18 07:41:50] aheckmeier@bct-technology.com
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7307