note 14751 added to function.bcmod.php
| From: | jlai at promarkdesigns dot com | Date: | Mon, 13 Aug 2001 16:45:59 +0000 |
| Subject: | note 14751 added to function.bcmod.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16646@lists.php.net to get a copy of this message | ||
When determining if the number is even or odd (helpful for easier reading of long search results)
and you have not compiled BCMath and don't want to go through the hasstle:
if ($i%2) {
echo "Number is Odd";
} else {
echo "Number is Even";
}
http://www.php.net/manual/en/function.bcmod.php