PHP.nl

gmp_mul

gmp_mul

Multiply numbers

GMP **gmp_mul**  $num1  $num2

Multiplies by and returns the result. num1``num2

num1 A number that will be multiplied by . num2

num2 A number that will be multiplied by . num1

gmp.return

Voorbeeld: example

<?php
$mul = gmp_mul("12345678", "2000");
echo gmp_strval($mul) . "\n";
?>
24691356000