Modulo operation
$num1
$num2
Calculates num1 modulo num2. The result is always non-negative, the sign of num2 is ignored.
num1
num2
A GMP object, an int or a numeric string.
The modulo that is being evaluated.
A GMP object.
Example #1 gmp_mod example
<?php $mod = gmp_mod("8", "3"); echo gmp_strval($mod) . "\n"; ?>
The above example will output:
2