php man page for locale_get_primary_language

Query: locale_get_primary_language

OS: php

Section: 3

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

LOCALE_GET_PRIMARY_LANGUAGE(3)						 1					    LOCALE_GET_PRIMARY_LANGUAGE(3)

Locale::getPrimaryLanguage - Gets the primary language for the input locale

	Object oriented style

SYNOPSIS
publicstatic string Locale::getPrimaryLanguage (string $locale)
DESCRIPTION
Procedural style string locale_get_primary_language (string $locale) Gets the primary language for the input locale
PARAMETERS
o $locale - The locale to extract the primary language code from
RETURN VALUES
The language code associated with the language or NULL in case of error.
EXAMPLES
Example #1 locale_get_primary_language(3) example <?php echo locale_get_primary_language('zh-Hant'); ?> Example #2 OO example <?php echo Locale::getPrimaryLanguage('zh-Hant'); ?> The above example will output: zh
SEE ALSO
locale_get_script(3), locale_get_region(3), locale_get_all_variants(3). PHP Documentation Group LOCALE_GET_PRIMARY_LANGUAGE(3)
Related Man Pages
locale_filter_matches(3) - php
locale_get_display_name(3) - php
collator_get_locale(3) - php
locale_get_display_language(3) - php
locale_get_primary_language(3) - php
Similar Topics in the Unix Linux Community
unix language
Logtalk 2.32.0 (Default branch)
Reading from a file(passing the file as input parameter)
How would you analyze the impact of C language on computer technology?
Solaris Date in different language