PhpAmqpLib/Wire/AMQPWriter.php
public function write_bits($bits)
    {
        $value = 0;

        foreach ($bits as $n => $bit) {
            $bit = $bit ? 1 : 0;
            $value |= ($bit << $n);
        }

        $this->out .= chr($value);

        return $this;
    }
public function write_bits($bits)
    {
        $value = 0;

        foreach ($bits as $n => $bit) {
            $bit = $bit ? 1 : 0;
            $value |= ($bit << $n);
        }

        $this->out .= chr($value);

        return $this;
    }
public function write_bits ( $ bits ) { $ value = 0 ; foreach ( $ bits as $ n => $ bit ) { $ bit = $ bit ? 1 : 0 ; $ value |= ( $ bit << $ n ) ; } $ this -> out .= chr ( $ value ) ; return $ this ; }
Write multiple bits as an octet

@param bool[] $bits
@return $this
Write multiple bits as an octet