Home > PHP > Function > GMP > gmp_and()

gmp_and()

gmp_and - Bitwise AND

Syntax

resource gmp_and (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 AND of two GMP numbers.

Version

PHP 4.0.4, 5

Return value

A GMP number representing the bitwise ANDcomparison.