置零: xabcd & 01111 => 0abcd
置一: xabcd | 10000 => 1abcd
取反: ~(xabcd & 10000) & xabcd
php二进制相关函数: str_pad, decbin, bindec