# Funktionsreferenz

BitAND

Performs a bitwise AND operation.

BitAND ( value1, value2 [, value n] )

Parameter

value1 | The first number.
value2 | The second number.
value n | [optional] The nth number - up to 255 values can be specified.

Bemerkungen

Remember hex notation can be used for numbers.
Remember that AND returns 1 iff both bits are 1 and Gibt 0 zurück. otherwise.

Siehe auch

BitNOT, BitOR, BitShift, BitXOR, Hex

Beispiel

$x = BitAND(13, 7) ;x == 5 because 1101 AND 0111 = 0101
$x = BitAND(2, 3, 6) ;x == 2 because 0010 AND 0011 AND 0110 = 0010