PHP » GoLang |
login |
register |
about
|
GoLang Locale::getDefault
request it (403)
GoLang replacement for PHP's Locale::getDefault
[edit | history]
Locale::getDefaultlocale_get_default(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Locale::getDefault -- locale_get_default — Gets 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 |
more
Recently updated
more
Most requested
more
Last requests
|