(PHP 4 >= 4.0.4, PHP 5, PHP 7)
gmp_add — Add numbers
gmp_add ( GMP|int|string $num1 , GMP|int|string $num2 ) : GMP
Add two numbers.
A GMP number representing the sum of the arguments.
Example #1 gmp_add() example
<?php $sum = gmp_add("123456789012345", "76543210987655"); echo gmp_strval($sum) . "\n"; ?>
The above example will output:
200000000000000
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.gmp-add.php