PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

locale_set_default> <i18n
Last updated: Sun, 25 Nov 2007

view this page in

locale_get_default

(No version information available, might be only in CVS)

locale_get_default — Get the default Locale

Popis

string locale_get_default ( void )

This function returns the default Locale, which is used by PHP to localize certain features. Please note that this isn't influenced by setlocale() or the system settings.

Vrátené hodnoty

Returns a string with the current Locale.

Príklady

Example#1 A locale_get_default() example

<?php

// get the default Locale
echo locale_get_default();

//set a new Locale...
locale_set_default('pt_PT');

// ... and print it
echo locale_get_default();

?>

Výstup horeuvedeného príkladu bude:

en_US_POSIX
pt_PT

Tiež pozri



add a note add a note User Contributed Notes
locale_get_default
There are no user contributed notes for this page.

locale_set_default> <i18n
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites