How to use bcmod() to get the modulus of an arbitrary precision number in PHP

1 Answer

0 votes
// string bcmod( string $left_operand , string $modulus)

echo bcmod('9', '3') . "<br />" ;
echo bcmod('15', '4') . "<br />" ;


/*
run: 

0
3 

*/

 



answered Jun 1, 2016 by avibootz
...