Back to PunycodeHelper class

Method fromPunycode

public static string
fromPunycode
(mixed $punycodeString)
Transforms a Punycode string to a UTF-8 string
Parameters
  • string $punycodeString The Punycode string to transform
Returns
  • string The UF-8 URL
Since
  • 3.1.2

Method fromPunycode - Source code

/**
 * Transforms a Punycode string to a UTF-8 string
 *
 * @param   string  $punycodeString  The Punycode string to transform
 *
 * @return  string  The UF-8 URL
 *
 * @since   3.1.2
 */
public static function fromPunycode($punycodeString)
{
    return (new ToUnicode())->convert($punycodeString);
}