ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## getBit ##### *Description* Return a single bit out of a larger string ##### *Parameters* *key**offset* ##### *Return value* *LONG*: the bit value (0 or 1) ##### *Example* ``` <pre class="calibre16">$redis->set('key', "\x7f"); // this is 0111 1111 $redis->getBit('key', 0); /* 0 */ $redis->getBit('key', 1); /* 1 */ ``` ##