Locale::canonicalize

locale_canonicalize

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0)

Locale::canonicalize -- locale_canonicalizeCanonicalize the locale string

说明

public static Locale::canonicalize(string $locale): ?string

警告

本函数还未编写文档,仅有参数列表。

参数

locale

返回值

Canonicalized locale string.

Returns null when the length of locale exceeds INTL_MAX_LOCALE_LEN.