82
PHP string setlocale() Function
The string setlocale() function is in-built function of PHP. It is used to set local information. It returns the new current locale and False if the locale functionality is not implemented.
Note: It returns value depends on the system.
Syntax:
Parameter | Description | Required/Optional |
---|---|---|
constant | Specify the local information to be set. Following constant:
| required |
Location | Specify what country/region to set the local information. | Required |
Example 1
Output:
Your Location is:US By using setlocale() function:English_United States.1252
Example 2
Output:
Your Location is: NULL By using setlocale() function:English_United States.1252
Next TopicPHP String