variant_xor

(PHP 5, PHP 7)
Performs a logical exclusion on two variants
mixed variant_xor ( mixed $left, mixed $right )

Performs a logical exclusion.

Parameters:
left

The left operand.

right

The right operand.

Returns:
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
See also:

variant_or() -

variant_and() -

doc_php
2016-02-24 16:14:29
Comments
Leave a Comment

Please login to continue.