note 103790 added to function.setlocale

From: Date: Tue, 03 May 2011 23:01:49 +0000
Subject: note 103790 added to function.setlocale
Groups: php.notes 
Request: Send a blank email to php-notes+get-179391@lists.php.net to get a copy of this message
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); } ?> ---- Server IP: 200.36.127.20 Probable Submitter: 189.216.212.107 ---- Manual Page -- http://www.php.net/manual/en/function.setlocale.php Edit -- https://master.php.net/note/edit/103790 Del: integrated -- https://master.php.net/note/delete/103790/integrated Del: useless -- https://master.php.net/note/delete/103790/useless Del: bad code -- https://master.php.net/note/delete/103790/bad+code Del: spam -- https://master.php.net/note/delete/103790/spam Del: non-english -- https://master.php.net/note/delete/103790/non-english Del: in docs -- https://master.php.net/note/delete/103790/in+docs Del: other reasons-- https://master.php.net/note/delete/103790 Reject -- https://master.php.net/note/reject/103790 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179391) next »