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_get_display_name(3) - php
collator_sort_with_sort_keys(3) - php
collator_asort(3) - php
locale_get_display_language(3) - php
locale_get_keywords(3) - php
Similar Topics in the Unix Linux Community
awk script to split field data
Using unix array in sql
Replace multiple strings of a file
Arrays
Need a Bash script for iterating thru an array and running a command