locale_get_all_variants(3) php man page | unix.com

Man Page: locale_get_all_variants

Operating Environment: php

Section: 3

LOCALE_GET_ALL_VARIANTS(3)						 1						LOCALE_GET_ALL_VARIANTS(3)

Locale::getAllVariants - Gets the variants for the input locale

	Object oriented style

SYNOPSIS
publicstatic array Locale::getAllVariants (string $locale)
DESCRIPTION
Procedural style array locale_get_all_variants (string $locale) Gets the variants for the input locale
PARAMETERS
o $locale - The locale to extract the variants from
RETURN VALUES
The array containing the list of all variants subtag for the locale or NULL if not present
EXAMPLES
Example #1 locale_get_all_variants(3) example <?php $arr = locale_get_all_variants('sl_IT_NEDIS_ROJAZ_1901'); var_export( $arr ); ?> Example #2 OO example <?php $arr = Locale::getAllVariants('sl_IT_NEDIS_ROJAZ_1901'); var_export( $arr ); ?> The above example will output: array ( 0 => 'NEDIS', 1 => 'ROJAZ', 2 => '1901', )
SEE ALSO
locale_get_primary_language(3), locale_get_script(3), locale_get_region(3). PHP Documentation Group LOCALE_GET_ALL_VARIANTS(3)
Related Man Pages
locale_get_display_variant(3) - php
collator_asort(3) - php
locale_compose(3) - php
locale_get_display_region(3) - php
locale_get_keywords(3) - php
Similar Topics in the Unix Linux Community
AWK help please
output of an array
awk problems
awk script to split field data
Need to have output of AWK array in one line