February 2013
Intermediate to advanced
538 pages
20h 55m
English
setlocale
string setlocale(mixedcategory, stringlocale[, stringlocale, ...]) string setlocale(mixedcategory, arraylocale)
Sets the locale for category
functions to locale. Returns the current
locale after being set, or false if
the locale cannot be set. Any number of options for
category can be added (or ORed) together.
The following options are available:
| All of the following categories |
| String comparisons |
| Character classification and conversion |
| Monetary functions |
| Numeric functions |
| Time and date formatting |
If locale is 0 or the empty string, the current locale is
unaffected.
Read now
Unlock full access