The gmp_or() function computes the bitwise OR of two GMP numbers.
Syntax
gmp_or(n1, n2)
Parameters
n1: The first GMP number. It can be GMP object in PHP version 5.6 and later. Can also be numeric strings.
n2: The second GMP number. It can be GMP object in PHP version 5.6 and later. Can also be numeric strings.
Return
The gmp_or() function returns the OR of the GMP numbers. The result is also a GMP number.
Example
The following is an example:
<?php $res = gmp_or("5", "7"); echo $res; ?>
Output
The following is the output:
7