Home > PHP > Function > COM > variant_xor()

variant_xor()

variant_xor - Performs a logical exclusion on two variants

Syntax

mixed variant_xor (mixed $left, mixed $right)

Arguments

  • left - The left operand.
  • right - The right operand.

Description

Performs a logical exclusion.

Version

PHP 5

Return value

Variant XOR Rules If left is If right is then the result is TRUE TRUE FALSE TRUE FALSE TRUE FALSE TRUE TRUE FALSE FALSE FALSE NULL NULL NULL