note 11477 added to Mathematical Functions
| From: | krisj at blueridge dot net | Date: | Thu, 22 Feb 2001 05:03:34 +0000 |
| Subject: | note 11477 added to Mathematical Functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11397@lists.php.net to get a copy of this message | ||
% is modulus
$evenodd = $myvar % 2;
if($evenodd)
{
odd
}
else
{
even
}
http://www.php.net/manual/en/ref.math.php