Re: [PHP4BETA] quick check.

From: Date: Mon, 13 Dec 1999 10:44:34 +0000
Subject: Re: [PHP4BETA] quick check.
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7845@lists.php.net to get a copy of this message
Hi Michael, > > totally off reference to the beta, but to do with the list I'm on at the > moment, > how would I check of an odd/even number? > eg, can I divide by two and can php check for a decimal etc? From the manual..... ------ Arithmetic Operators Remember basic arithmetic from school? These work just like those. Table 10-1. Arithmetic Operators example name result $a + $b Addition Sum of $a and $b. $a - $b Subtraction Remainder of $b subtracted from $a. $a * $b Multiplication Product of $a and $b. $a / $b Division Dividend of $a and $b. $a % $b Modulus Remainder of $a divided by $b.> ------ HTH Cheers, Martin

« previous php.version4 (#7845) next »