Home > PHP > Function > GMP > gmp_or()

gmp_or()

gmp_or - Bitwise OR

Syntax

resource gmp_or (resource $a, resource $b)

Arguments

  • a - It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.
  • b - It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.

Description

Calculates bitwise inclusive OR of two GMP numbers.

Version

PHP 4.0.4, 5

Return value

A GMP number resource.