= 4.0.4, PHP 5, PHP 7, PHP 8)gmp_or — Bitwise OR說明gmp_or(GMP|int|string $num1, GMP|int|string $num2): GMPCalculates bitwise inclusive OR">
(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)
gmp_or — Bitwise OR
Calculates bitwise inclusive OR of two GMP numbers.
GMP 對(duì)象。
示例 #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";
?>
以上例程會(huì)輸出:
fffffff6 fffffff2