(PHP 4 >= 4.0.4, PHP 5)
gmp_add — 数値を加算する
2 つの数を加算します。
足される数。
It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.
足す数。
加算の結果を GMP 数で返します。
例1 gmp_add() の例
<?php$sum = gmp_add("123456789012345", "76543210987655");echo gmp_strval($sum) . "\n";?>
上の例の出力は以下となります。
200000000000000