note 20958 deleted from function.floor by nlopess
| From: | nlopess@php.net | Date: | Thu, 10 Nov 2005 18:30:15 +0000 |
| Subject: | note 20958 deleted from function.floor by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98400@lists.php.net to get a copy of this message | ||
Note Submitter: jjuffermans at chello dot com
----
The sample to show "odd" or "even" doesn't work like that. Use this:
if (intval($number / 2) == ($number / 2)) {
echo "even";
} else {
echo "odd";
}