(PHP 5, PHP 7)
Performs a bitwise AND operation between two variants
mixed variant_and ( mixed $left, mixed $right )
Performs a bitwise AND operation. Note that this is slightly different from a regular AND 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 |
FALSE |
TRUE |
NULL |
NULL |
FALSE |
TRUE |
FALSE |
FALSE |
FALSE |
FALSE |
FALSE |
NULL |
FALSE |
NULL |
TRUE |
NULL |
NULL |
FALSE |
FALSE |
NULL |
NULL |
NULL |
See also:
Please login to continue.