string setlocale(const category, string locale, ...)
string setlocale(const category, array locales)
Localenames:
- Are OS dependent (deu_deu vs. de_DE)
- Are not always available
Example:
<?php
$locale = setlocale(LC_ALL,
"nl_NL.UTF-8@euro", "nl_NL.UTF-8", "dutch", "nld_nld");
echo "New locale: ", $locale, "<br />\n";
$locale = setlocale(LC_ALL, array("nld_nld", "nederlands"));
echo "New locale: ", $locale, "<br />\n";
?>
Output:
New locale:
New locale:
New locale: