locale_get_script(3) php man page | unix.com

Man Page: locale_get_script

Operating Environment: php

Section: 3

LOCALE_GET_SCRIPT(3)							 1						      LOCALE_GET_SCRIPT(3)

Locale::getScript - Gets the script for the input locale

	Object oriented style

SYNOPSIS
publicstatic string Locale::getScript (string $locale)
DESCRIPTION
Procedural style string locale_get_script (string $locale) Gets the script for the input locale.
PARAMETERS
o $locale - The locale to extract the script code from
RETURN VALUES
The script subtag for the locale or NULL if not present
EXAMPLES
Example #1 locale_get_script(3) example <?php echo locale_get_script('sr-Cyrl'); ?> Example #2 OO example <?php echo Locale::getScript('sr-Cyrl'); ?> The above example will output: Cyrl
SEE ALSO
locale_get_primary_language(3), locale_get_region(3), locale_get_all_variants(3). PHP Documentation Group LOCALE_GET_SCRIPT(3)
Related Man Pages
locale(3) - php
locale_compose(3) - php
locale_get_all_variants(3) - php
locale_get_display_region(3) - php
locale_get_primary_language(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Denial Of Service Attack Update