note 31388 added to language.expressions
| From: | Miki at rack1 dot php dot net | Date: | Sat, 19 Apr 2003 23:24:05 +0000 |
| Subject: | note 31388 added to language.expressions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46828@lists.php.net to get a copy of this message | ||
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.
--
http://www.php.net/manual/en/language.expressions.php
http://master.php.net/manage/user-notes.php?action=edit+31388
http://master.php.net/manage/user-notes.php?action=delete+31388
http://master.php.net/manage/user-notes.php?action=reject+31388