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_region(3) - php
locale_get_keywords(3) - php
locale_lookup(3) - php
locale_parse(3) - php
Similar Topics in the Unix Linux Community
Logtalk 2.31.4 (Default branch)
Logtalk 2.31.5 (Default branch)
I am a newb to the C programmming language how do I make it interesting?
Reading from a file(passing the file as input parameter)
Solaris Date in different language