public function serialize(array $table)
    {
        $buffer = '';

        foreach ($table as $key => $value) {
            $buffer .= $this->serializeShortString($key);
            $buffer .= $this->serializeField($value);
        }

        return $this->serializeByteArray($buffer);
    }
public function serialize(array $table)
    {
        $buffer = '';

        foreach ($table as $key => $value) {
            $buffer .= $this->serializeShortString($key);
            $buffer .= $this->serializeField($value);
        }

        return $this->serializeByteArray($buffer);
    }
public function serialize ( array $ table ) { $ buffer = '' ; foreach ( $ table as $ key => $ value ) { $ buffer .= $ this -> serializeShortString ( $ key ) ; $ buffer .= $ this -> serializeField ( $ value ) ; } return $ this -> serializeByteArray ( $ buffer ) ; }
Serialize an AMQP table.

@param array $table The table.

@return string                   The binary serialized table.
@throws InvalidArgumentException if the table contains unserializable
values.
Serialize an AMQP table .