Query: locale_get_script
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LOCALE_GET_SCRIPT(3) 1 LOCALE_GET_SCRIPT(3) Locale::getScript - Gets the script for the input locale Object oriented styleSYNOPSISpublicstatic string Locale::getScript (string $locale)DESCRIPTIONProcedural style string locale_get_script (string $locale) Gets the script for the input locale.PARAMETERSo $locale - The locale to extract the script code fromRETURN VALUESThe script subtag for the locale or NULL if not presentEXAMPLESExample #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: CyrlSEE ALSOlocale_get_primary_language(3), locale_get_region(3), locale_get_all_variants(3). PHP Documentation Group LOCALE_GET_SCRIPT(3)
Related Man Pages |
---|
numfmt_get_locale(3) - php |
collator_get_locale(3) - php |
locale_compose(3) - php |
locale_get_all_variants(3) - php |
locale_get_primary_language(3) - php |