|
Locale::canonicalizelocale_canonicalizeCanonicalize the locale string Description
public static stringnull Locale::canonicalize(string
$locale)Canonicalizes the passed locale string to ICU format. This does not necessarily indicate or return a valid locale. It is only a version of the input that has been canonicalized according to ICU rules.
The behavior of this function depends on the version of ICU PHP is using
( Parameters
Return ValuesCanonicalized locale string. Returns ExamplesExample #1 locale_canonicalize example The above example will output something similar to: en_US totally_NOT_VALID |