= 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
$num1
$num2
Calculates bitwise inclusive OR of two GMP numbers.
num1
GMP 對象或 int ,或數(shù)字string。
num2
GMP 對象。
示例 #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";?>
以上例程會輸出:
fffffff6 fffffff2