(PHP 5, PHP 7)
Performs a logical disjunction on two variants
mixed variant_or ( mixed $left, mixed $right )
Performs a bitwise OR operation. Note that this is slightly different from a regular OR operation.
Parameters:
left
The left operand.
right
The right operand.
Returns:
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 |
See also:
Please login to continue.