public function decode($input)
    {
        $parts = explode('.', $input);

        foreach ($parts as &$part) {
            if (strpos($part, static::PREFIX) === 0) {
                $part = $this->_decodePart(
                    substr($part, strlen(static::PREFIX))
                );
            }
        }

        return implode('.', $parts);
    }
public function decode($input)
    {
        $parts = explode('.', $input);

        foreach ($parts as &$part) {
            if (strpos($part, static::PREFIX) === 0) {
                $part = $this->_decodePart(
                    substr($part, strlen(static::PREFIX))
                );
            }
        }

        return implode('.', $parts);
    }
public function decode ( $ input ) { $ parts = explode ( '.' , $ input ) ; foreach ( $ parts as & $ part ) { if ( strpos ( $ part , static :: PREFIX ) === 0 ) { $ part = $ this -> _decodePart ( substr ( $ part , strlen ( static :: PREFIX ) ) ) ; } } return implode ( '.' , $ parts ) ; }
Decode a Punycode domain name to its Unicode counterpart.

@param string $input  Domain name in Punycode

@return string  Unicode domain name.
Decode a Punycode domain name to its Unicode counterpart .