GMP gmp_or
(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)
gmp_or — Bitwise OR
설명
gmp_or(GMP|int|string $num1
, GMP|int|string $num2
): GMP
두 GMP 번호의 비트 포함 OR을 계산합니다.
매개변수
반환 값
GMP 개체입니다.
Examples
예제 #1 gmp_or() 예제
<?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