Is there a BigInteger class in PHP?
Is there a BigInteger class in PHP? If so, how do I access it or use it? Hopefully helpfull links : http://php.net/manual/en/ref.bc.php http://php.net/manual/en/ref.gmp.php EDIT: Math_BigInteger Example from http://phpseclib.sourceforge.net/documentation/math.html : Implements an arbitrary precision integer arithmetic library. Uses gmp or bcmath, if available, and an internal implementation, otherwise. <?php include('Math/BigInteger.php'); $a = new Math_BigInteger(2); $b = new Math_BigInteger(3); $c = $a->add($b); echo $c->toString(); // outputs 5 ?> Even though this question is old, it comes