Query: gmp_add
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GMP_ADD(3) 1 GMP_ADD(3) gmp_add - Add numbersSYNOPSISGMP gmp_add (GMP $a, GMP $b)DESCRIPTIONAdd two numbers.PARAMETERSo $a - A number that will be added. Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number. o $b - A number that will be added. Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number.RETURN VALUESA GMP number representing the sum of the arguments.EXAMPLESExample #1 gmp_add(3) example <?php $sum = gmp_add("123456789012345", "76543210987655"); echo gmp_strval($sum) . " "; ?> The above example will output: 200000000000000 PHP Documentation Group GMP_ADD(3)