protected function encodeQuestion(array $question): string
    {
        $encoded = $this->encodeLabel($question['host']);
        $encoded .= \pack('nn', $question['type'], $question['class']);
        
        return $encoded;
    }
protected function encodeQuestion(array $question): string
    {
        $encoded = $this->encodeLabel($question['host']);
        $encoded .= \pack('nn', $question['type'], $question['class']);
        
        return $encoded;
    }
protected function encodeQuestion ( array $ question ) : string { $ encoded = $ this -> encodeLabel ( $ question [ 'host' ] ) ; $ encoded .= \ pack ( 'nn' , $ question [ 'type' ] , $ question [ 'class' ] ) ; return $ encoded ; }
Encode a question record.
Encode a question record .