PHP.nl

gmp_add

gmp_add

Add numbers

GMP **gmp_add**  $num1  $num2

Add two numbers.

num1The first summand (augent).

num2The second summand (addend).

A GMP number representing the sum of the arguments.

Voorbeeld: example

<?php
$sum = gmp_add("123456789012345", "76543210987655");
echo gmp_strval($sum) . "\n";
?>
200000000000000