note 57679 deleted from language.operators by nlopess
| From: | nlopess@php.net | Date: | Tue, 11 Oct 2005 08:05:56 +0000 |
| Subject: | note 57679 deleted from language.operators by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96815@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Modular Arithmetic is accomplished with the percent operator just like in C, perl, and a half-dozen
other languages.
echo 10 % 4;
=>2
There is no need to writea new mod function.