variant_and()
variant_and - Performs a bitwise AND operation between two variants
Syntax
mixed variant_and (
mixed $left,
mixed $right)
Arguments
- left - The left operand.
- right - The right operand.
Description
Performs a bitwise AND operation. Note that this is slightly different from a regular AND operation.
Version
PHP 5
Return value
Variant AND Rules If left is If right is then the result is TRUE TRUE TRUE TRUE FALSE FALSE TRUE NULL NULL FALSE TRUE FALSE FALSE FALSE FALSE FALSE NULL FALSE NULL TRUE NULL NULL FALSE FALSE NULL NULL NULL