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)