&
Bitwise Operators
Bitwise operators allow evaluation and manipulation of specific bits within an integer.
Example | Name | Result |
---|---|---|
$a & $b | And | Bits that are set in both $a and $b are set. |
$a | $b | Or (inclusive or) | Bits that are set in either $a or $b are set. |
$a ^ $b | Xor (exclusive or) | Bits that are set in 登录查看完整内容
|