PhpAmqpLib/Wire/AMQPWriter.php
public function write_shortstr($s)
    {
        $len = mb_strlen($s, 'ASCII');
        if ($len > 255) {
            throw new AMQPInvalidArgumentException('String too long');
        }

        $this->write_octet($len);
        $this->out .= $s;

        return $this;
    }
public function write_shortstr($s)
    {
        $len = mb_strlen($s, 'ASCII');
        if ($len > 255) {
            throw new AMQPInvalidArgumentException('String too long');
        }

        $this->write_octet($len);
        $this->out .= $s;

        return $this;
    }
public function write_shortstr ( $ s ) { $ len = mb_strlen ( $ s , 'ASCII' ) ; if ( $ len > 255 ) { throw new AMQPInvalidArgumentException ( 'String too long' ) ; } $ this -> write_octet ( $ len ) ; $ this -> out .= $ s ; return $ this ; }
Write a string up to 255 bytes long after encoding.
Assume UTF-8 encoding

@param string $s
@return $this
@throws \PhpAmqpLib\Exception\AMQPInvalidArgumentException
Write a string up to 255 bytes long after encoding . Assume UTF - 8 encoding