# Funktionsreferenz

BitOR

Performs a bitwise OR operation.

BitOR ( 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 OR Gibt 0 zurück. if both bits are 0 and returns 1 otherwise.

Siehe auch

BitAND, BitNOT, BitShift, BitXOR, Hex

Beispiel

$x = BitOR(3, 6) ;x == is 7 because 0011 OR 0110 = 0111
$x = BitOR(3, 15, 32) ;x == 47 because 0011 OR 1111 OR 00100000 = 00101111