note 103790 deleted from function.setlocale by danbrown
| From: | danbrown@php.net | Date: | Wed, 04 May 2011 15:46:34 +0000 |
| Subject: | note 103790 deleted from function.setlocale by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179418@lists.php.net to get a copy of this message | ||
Note Submitter: php at javierparra dot com dot mx
----
As a note on anonymous' getlocale function:
That will set and return the Environment value of the locale, so if somewhere before in your script
the locale was set, it will change to the value on Env, if you don't want this behaviour,
instead of passing null you should pass 0 to set_locale.
<?php
function getlocale($category) {
return setlocale($category, 0);
}
?>