Home > PHP > Function > GMP > gmp_xor()

gmp_xor()

gmp_xor - Bitwise XOR

Syntax

resource gmp_xor (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 exclusive OR (XOR) of two GMP numbers.

Version

PHP 4.0.4, 5

Return value

A GMP number resource.