array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.gmp-mul.php', 1 => 'gmp_mul', ), 'up' => array ( 0 => 'ref.gmp.php', 1 => 'Fonctions GMP', ), 'prev' => array ( 0 => 'function.gmp-mod.php', 1 => 'gmp_mod', ), 'next' => array ( 0 => 'function.gmp-neg.php', 1 => 'gmp_neg', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/gmp/functions/gmp-mul.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)
gmp_mul — Multiplication de 2 nombres GMP
Multiplie les nombres GMP num1
et num2
.
num1
Un nombre qui sera multiplié par num2
.
Un objet GMP, un entier, ou une chaîne de caractères numérique.
num2
Un nombre qui sera multiplié par num1
.
Un objet GMP, un entier, ou une chaîne de caractères numérique.
Un objet GMP.
Exemple #1 Exemple avec gmp_mul()
<?php
$mul = gmp_mul("12345678", "2000");
echo gmp_strval($mul) . "\n";
?>
L'exemple ci-dessus va afficher :
24691356000