php man page for locale_get_all_variants

Query: locale_get_all_variants

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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(3) - php
collator_asort(3) - php
locale_get_all_variants(3) - php
locale_get_primary_language(3) - php
locale_parse(3) - php
Similar Topics in the Unix Linux Community
awk problems
Perl and string array problem
Using unix array in sql
Need to have output of AWK array in one line
Arrays