|
PHP5中文手册
bcpowmod(PHP 5) bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus 说明
string bcpowmod
( string $left_operand
, string $right_operand
, string $modulus
[, int $scale
] )
Use the fast-exponentiation method to raise left_operand to the power right_operand with respect to the modulus modulus . 参数
返回值Returns the result as a string, or NULL if modulus is 0. 注释
范例The following two statements are functionally identical. The bcpowmod() version however, executes in less time and can accept larger parameters.
<?php |