note 38351 deleted from function.nl-langinfo by didou

From: Date: Wed, 17 Dec 2003 17:50:37 +0000
Subject: note 38351 deleted from function.nl-langinfo by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62137@lists.php.net to get a copy of this message
Note Submitter: jw@jwscripts.com ---- 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.

« previous php.notes (#62137) next »