PHP » GoLang |
login |
register |
about
|
GoLang Locale::getDisplayName
request it (339)
GoLang replacement for PHP's Locale::getDisplayName
[edit | history]
Locale::getDisplayNamelocale_get_display_name(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Locale::getDisplayName -- locale_get_display_name — Returns an appropriately localized display name for the input locale DescriptionObject oriented style
public
static
string
Locale::getDisplayName
( string
$locale
[, string $in_locale
] )Procedural style
string
locale_get_display_name
( string
$locale
[, string $in_locale
] )
Returns an appropriately localized display name for the input locale. If $locale is
Parameters
Return ValuesDisplay name of the locale in the format appropriate for $in_locale. ExamplesExample #1 locale_get_display_name() example
<?php Example #2 OO example
<?php The above example will output: Slovenian (Latin, Italy, Natisone dialect); slov\xc3\xa8ne (latin, Italie, dialecte de Natisone; Slowenisch (Lateinisch, Italien, NEDIS) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|