variant_xor
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Performs a logical exclusion on two variants
Description
variant_xor(mixed $left, mixed $right): variant
Performs a logical exclusion.
Parameters
leftThe left operand.
rightThe right operand.
Variant-arith
Return Values
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 |
Errors/Exceptions
Throws a com_exception on failure.