GNU Multiple Precision (GMP)¶
gmp is a PHP extension that stands for “GNU Multiple Precision”. It provides functionality to process mathematically arbitrary-length integers .
The gmp extension allows the basic calculations, like addition, multiplication,… some advanced math functions such as square roots, prime test, legendre symbol, GCD, etc.
<?php
echo 'TRANSLIT : ', iconv("UTF-8", "ISO-8859-1//TRANSLIT", $text), PHP_EOL;
// TRANSLIT : This is the Euro symbol 'EUR'.
?>
See also GNU MP library and A Beginner’s Guide to the PHP GMP Library for Arbitrary Precision Arithmetic.
Related : Bcmath, Math, Real Numbers