|
locale_set_default
Set the default Locale
()
Sets the default Locale for PHP programs. Please note that this has nothing to do with setlocale() nor with the system locale. Parameters
ExamplesExample 908. A locale_set_default() exampleThis example demonstrates a possible usage of locale_set_default() to localize the sort() functions. <?php The above example will output: Array If we didn't use the locale, PHP would sort the string using the ASCII characters value, thus returning (wrongly): Array
See Also
|