位操作符允许您精细的操作数据的每一个位。
table 7-2. bitwise operators(表7-2位操作符)
example name result
$a & $b and bits that are set in both $a and $b are set.?/font>
$a | $b or bits that are set in either $a or $b are set.?/font>
~ $a?/font> not bits that are set in $a are not set, and vice versa.
