Search Results
locale_get_script does no validation of whether the script exists, but just extracts the 4-character text that looks like it can be the script part of the locale, and formats it with an initial cap.
Locale::getScript -- locale_get_script — Retourne un code pour le script de la locale
Locale::getScript -- locale_get_script — Gets the script for the input locale
Locale::getScript -- locale_get_script — Gets the script for the input locale
Simple usage example of `Locale::getScript ()`. The Locale::getScript function is a PHP function that retrieves the script associated with a given locale input. A script refers to the writing system used by a specific language, such as Latin, Cyrillic, or Arabic. This function allows you to extract the script component from a locale identifier.
The Locale class Introduction A "Locale" is an identifier used to get language, culture, or regionally-specific behavior from an API. PHP locales are organized and identified the same way that the CLDR locales used by ICU (and many vendors of Unix-like operating systems, the Mac, Java, and so forth) use.
Return Values The script subtag for the locale or NULL if not present
