note 106111 deleted from language.operators.arithmetic by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 15:08:31 +0000 |
| Subject: | note 106111 deleted from language.operators.arithmetic by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189828@lists.php.net to get a copy of this message | ||
Note Submitter: zehntor at netcabo dot pt
----
The simplest way to test if a number is divisible by another:
<?php
if($n1 % $n2 == 0) echo "n1 is divisible by n2";
?>