variant_and

(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:
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
See also:

variant_or() -

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

Please login to continue.