variant_or
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Performs a logical disjunction on two variants
Description
variant_or(mixed $left, mixed $right): variant
Performs a bitwise OR operation. Note that this is slightly different from a regular OR operation.
Parameters
leftThe left operand.
rightThe right operand.
Variant-arith
Return Values
If left is | If right is | then the result is |
|---|---|---|
| true | true | true |
| true | false | true |
| true | null | true |
| false | true | true |
| false | false | false |
| false | null | null |
| null | true | true |
| null | false | null |
| null | null | null |
Errors/Exceptions
Throws a com_exception on failure.