(PHP 4 >= 4.0.4, PHP 5)
gmp_mod — モジュロ演算
d を法として n を計算します。結果は常に非負であり、 d の符号は無視されます。
It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.
法として使用する値。
A GMP number resource.
Example#1 gmp_mod() の例
<?php$mod = gmp_mod("8", "3");echo gmp_strval($mod) . "\n";?>
上の例の出力は以下となります。
2