The setlocale() function sets the locale information.
Locale information is currency format, currency symbol, language, monetary, time and other information specific for a geographical area.
Note : On Windows, setlocale(LC_ALL, ”) sets the locale names from the system’s regional/language settings (accessible via Control Panel).
Returns the new current locale, or FALSE if the locale functionality is not implemented on your platform, the specified locale does not exist or the category name is invalid.
[table caption=”” width=”100%” colwidth=”25%|75%” colalign=”left|left”]
Version, Description
PHP 7.0.0 , Support for the category parameter passed as a string has been removed. Only LC_* constants can be used as of this version.
PHP 5.3.0, This function now throws an E_DEPRECATED notice if a string is passed to the category parameter instead of one o
[/table]
<?php echo setlocale(LC_ALL,"US"); echo "<br>"; echo setlocale(LC_ALL,NULL); ?>
See below is the output of above code in Web browser.
When it comes to children, there’s one universal truth: the right toy can spark imagination, build skills, and make memories…
In today’s digital age, where screens and gadgets dominate our children’s lives, there’s something heartwarming about a well-loved plush toy…
In a world dominated by screens and fast-paced routines, it’s easy to forget the simple magic of a toy in…
In the heart of Delhi’s vibrant streets lies a world where imagination meets innovation — the magical universe of toys.…
When was the last time a toy truly amazed you—not just as a product, but as a thoughtful tool for…
In the digital age, the way we experience childhood has changed, but the essence remains the same—imagination, exploration, and joy.…