使用场景:
1) 判断奇数偶数
for ($i=0; $i < 10 ; $i++) { if($i & 1){ echo $i.PHP_EOL; } } //输出所有奇数
PHP之位运算符
原文:https://www.cnblogs.com/xingxia/p/php_bit.html