note 31388 deleted from language.expressions by nlopess
| From: | nlopess@php.net | Date: | Tue, 13 Jan 2004 14:54:01 +0000 |
| Subject: | note 31388 deleted from language.expressions by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63439@lists.php.net to get a copy of this message | ||
Note Submitter: Miki
----
It appears to me that % is simply the same as % in C++ which is the modulus operator.
modulus - Returns the remainder obtained by dividing the first argument by the second argument.
So in the example above it's not subtracting 2 from it and returning the result, it's
dividing $a by 2 and returning the remainder.