💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
## 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 */ ``` ##