public static function labels($q)
    {
        $e = explode('.', $q);
        $r = '';
        for ($i = 0, $s = sizeof($e); $i < $s; ++$i)
        {
            $r .= chr(strlen($e[$i])) . $e[$i];
        }
        if (static::binarySubstr($r, -1) !== "\x00") {
            $r .= "\x00";
        }
        return $r;
    }
public static function labels($q)
    {
        $e = explode('.', $q);
        $r = '';
        for ($i = 0, $s = sizeof($e); $i < $s; ++$i)
        {
            $r .= chr(strlen($e[$i])) . $e[$i];
        }
        if (static::binarySubstr($r, -1) !== "\x00") {
            $r .= "\x00";
        }
        return $r;
    }
public static function labels ( $ q ) { $ e = explode ( '.' , $ q ) ; $ r = '' ; for ( $ i = 0 , $ s = sizeof ( $ e ) ; $ i < $ s ; ++ $ i ) { $ r .= chr ( strlen ( $ e [ $ i ] ) ) . $ e [ $ i ] ; } if ( static :: binarySubstr ( $ r , - 1 ) !== "\x00" ) { $ r .= "\x00" ; } return $ r ; }
Build structure of labels.

@param string $q dot-separated labels list.
@return string
Build structure of labels .