note 41643 added to function.setlocale

From: Date: Sat, 17 Apr 2004 22:46:04 +0000
Subject: note 41643 added to function.setlocale
Groups: php.notes 
Request: Send a blank email to php-notes+get-68269@lists.php.net to get a copy of this message
The following code will allow you to apply your locale settings regardless of the OS platform used. <?php $locale = array('fr','fr_FR','french'); // use as many entries as you want. The last valid one would apply. // Localizing time while(list(,$temp_lang_code) = each($locale) ) { setlocale (LC_TIME,$temp_lang_code); } // let's test the results echo ucwords(strftime ("%A, %e %B %d, %Y")); ?> ---- Manual Page -- http://www.php.net/manual/en/function.setlocale.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41643 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41643&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41643&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68269) next »