I need to calculate modulus with large number like :
<?php $largenum = 95635000009453274121700; echo $largenum % 97; ?>
It’s not working… because $largenum is too big for an int in PHP.
Any idea how to do this ?
$largenum = '95635000009453274121700'; echo bcmod($largenum, '97');
$largenum is passed as a string, not converted to int.