modulus(%)
The modulus operator, represented by the % sign, returns the remainder of the division of the first operand by the second operand:
<?php
$n1 =15;
$n2 = 9;
$mod = $n1%$n2;
echo $mod;
//output 6
?>
by Guram Azarashvili
2 years ago
PHP
Operators
PHP official doc
0
Pro tip: use ```triple backticks around text``` to write in code fences