PHP/Development/I18N Locale

Материал из Web эксперт
Перейти к: навигация, поиск

Display the current locale information and change the locale

   <source lang="html4strict">

<? print setlocale (LC_ALL, "0"); setlocale (LC_ALL, "fr"); ?>

      </source>
   
  


Locale get and set

   <source lang="html4strict">

<? setlocale (LC_ALL, "fr"); print_r (localeconv ()); ?>

      </source>