|
Locale::getDefaultlocale_get_defaultGets the default locale value from the INTL global 'default_locale' DescriptionObject oriented style
public
static
string
Locale::getDefault
( void
)
Procedural style
string
locale_get_default
( void
)
Gets the default locale value. At the PHP initialization this value is set to 'intl.default_locale' value from php.ini if that value exists or from ICU's function uloc_getDefault(). Parameters
Return ValuesThe current runtime locale ExamplesExample #1 locale_get_default example
<?php Example #2 OO example
<?php The above example will output: de-DE; fr See Also
|