array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.gmp-div-r.php', 1 => 'gmp_div_r', ), 'up' => array ( 0 => 'ref.gmp.php', 1 => 'Funções GMP', ), 'prev' => array ( 0 => 'function.gmp-div-qr.php', 1 => 'gmp_div_qr', ), 'next' => array ( 0 => 'function.gmp-div.php', 1 => 'gmp_div', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmp/functions/gmp-div-r.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_div_r — Remainder of the division of numbers
Calculates remainder of the integer division of
num1
by num2
. The
remainder has the sign of the num1
argument,
if not zero.
The remainder, as a GMP number.
Exemplo #1 gmp_div_r() example
<?php
$div = gmp_div_r("105", "20");
echo gmp_strval($div) . "\n";
?>
O exemplo acima produzirá:
5