protected function encodeLabel(string $label): string
    {
        $encoded = '';
        
        foreach (\explode('.', $label) as $part) {
            $encoded .= \chr(\strlen($part)) . $part;
        }
        
        return $encoded . "\x00";
    }
protected function encodeLabel(string $label): string
    {
        $encoded = '';
        
        foreach (\explode('.', $label) as $part) {
            $encoded .= \chr(\strlen($part)) . $part;
        }
        
        return $encoded . "\x00";
    }
protected function encodeLabel ( string $ label ) : string { $ encoded = '' ; foreach ( \ explode ( '.' , $ label ) as $ part ) { $ encoded .= \ chr ( \ strlen ( $ part ) ) . $ part ; } return $ encoded . "\x00" ; }
Encode a DNS label into it's binary form.
Encode a DNS label into it s binary form .