array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.gmp-or.php', 1 => 'gmp_or', ), 'up' => array ( 0 => 'ref.gmp.php', 1 => 'GMP Functions', ), 'prev' => array ( 0 => 'function.gmp-nextprime.php', 1 => 'gmp_nextprime', ), 'next' => array ( 0 => 'function.gmp-perfect-power.php', 1 => 'gmp_perfect_power', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmp/functions/gmp-or.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_or — Bitwise OR
Calculates bitwise inclusive OR of two GMP numbers.
A GMP object.
Example #1 gmp_or() example
<?php
$or1 = gmp_or("0xfffffff2", "4");
echo gmp_strval($or1, 16) . "\n";
$or2 = gmp_or("0xfffffff2", "2");
echo gmp_strval($or2, 16) . "\n";
?>
The above example will output:
fffffff6 fffffff2