Bitwise Operators summary table : Bitwise Operators : Language Basics PHP Source Code


PHP Source Code » Language Basics » Bitwise Operators »

 

Bitwise Operators summary table


 

Operation         Operator    Class     Associativity    Example

Bitwise AND       &           Binary    Left             $a & $b

Bitwise           |           Binary    Left             $a | $b
inclusive OR

Bitwise exclusive ^           Binary    Left             $a ^ $b
OR (XOR)

Bitwise NOT       ~           Unary     Right            ~$a

Bitwise           <<          Binary    Left             $a << $b
left-shift

Bitwise           >>          Binary    Left             $a >> $b 
right-shift



           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Bitwise Operators