note 38351 added to function.nl-langinfo
| From: | jw at jwscripts dot com | Date: | Wed, 17 Dec 2003 17:45:28 +0000 |
| Subject: | note 38351 added to function.nl-langinfo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62136@lists.php.net to get a copy of this message | ||
As the man page for this function states, calls to setlocale() with a category corresponding to the
category of item, or to the category LC_ALL, may overwrite buffer pointed by the
return value.
In other words, when you want to print "januari" (Dutch) for the first month of the year,
you would do:
<?
setlocale (LC_ALL, 'nl_NL');
echo nl_langinfo(MON_1);
?>
See the manual entry for setlocale() for more info.
----
Manual Page -- http://www.php.net/manual/en/function.nl-langinfo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38351
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38351&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38351&report=yes
Search -- http://master.php.net/manage/user-notes.php