gmp_or

(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)

gmp_orBitwise OR

Beschreibung

gmp_or ( GMP|int|string $num1 , GMP|int|string $num2 ) : GMP

Calculates bitwise inclusive OR of two GMP numbers.

Parameter-Liste

num1

Ein GMP-Object, ein Integer oder eine numeriche Zeichenkette.

num2

Ein GMP-Object, ein Integer oder eine numeriche Zeichenkette.

Rückgabewerte

Ein GMP-Objekt.

Beispiele

Beispiel #1 gmp_or() example

<?php
$or1 
gmp_or("0xfffffff2""4");
echo 
gmp_strval($or116) . "\n";
$or2 gmp_or("0xfffffff2""2");
echo 
gmp_strval($or216) . "\n";
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

fffffff6
fffffff2

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top