September 2001
Intermediate to advanced
768 pages
32h 45m
English
string setlocale(mixed category, int locale)
Sets locale information.
Returns:
String containing the name of the locale set; FALSE on error
Description:
setlocale() sets the locale for the given category . A locale is a definition of language- and culture-specific behaviors for values in the environment.
The category specifies the part of the system functionality to which the locale is applied. The following table describes the valid categories.
| Category | Description |
|---|---|
| LC_ALL | Applies the locale to all of the categories below |
| LC_COLLATE | Collation/character sorting order |
| LC_CTYPE | Character classification and case conversion |
| LC_MESSAGES | Formats used for system messages |
| LC_MONETARY | Monetary formatting |
| LC_NUMERIC | Numeric, non-monetary formatting ... |
Read now
Unlock full access