PHP » GoLang |
login |
register |
about
|
GoLang Locale::getAllVariants
request it (378)
GoLang replacement for PHP's Locale::getAllVariants
[edit | history]
Locale::getAllVariantslocale_get_all_variants(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Locale::getAllVariants -- locale_get_all_variants — Gets the variants for the input locale DescriptionObject oriented style
public
static
array
Locale::getAllVariants
( string
$locale
)Procedural style
array
locale_get_all_variants
( string
$locale
)Gets the variants for the input locale Parameters
Return Values
The array containing the list of all variants subtag for the locale
or ExamplesExample #1 locale_get_all_variants() example
<?php Example #2 OO example
<?php The above example will output: array ( 0 => 'NEDIS', 1 => 'ROJAZ', 2 => '1901', ) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|