variant_or

(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:
Variant OR Rules
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:

variant_and() -

variant_xor() -

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

Please login to continue.