Locale::addLikelySubtags
locale_add_likely_subtags
(No version information available, might only be in Git)
Locale::addLikelySubtags -- locale_add_likely_subtags — Add likely subtags to a locale
Description
Object-oriented style
Procedural style
Expands a locale tag by adding likely subtags based on the ICU locale data.
For example, en becomes en_Latn_US.
Parameters
locale
The locale to expand.
Return Values
Returns the locale with likely subtags added, or false on failure.
Errors/Exceptions
Throws a ValueError when the locale
argument contains null bytes.
See Also
- Locale::minimizeSubtags() - Remove likely subtags from a locale
- Locale::canonicalize() - Canonicalize the locale string
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
