(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)
gmp_add — Add numbers
A GMP number representing the sum of the arguments.
示例 #1 gmp_add() example
<?php
$sum = gmp_add("123456789012345", "76543210987655");
echo gmp_strval($sum) . "\n";
?>
以上示例会输出:
200000000000000