(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0)
Gets the script for the input locale
public static string Locale::getScript ( string $locale )
Object oriented style
Procedural style
string locale_get_script ( string
$locale )Gets the script for the input locale.
Parameters:
locale
The locale to extract the script code from
Returns:
The script subtag for the locale or NULL if not present
Examples:
locale_get_script() example
<?php
echo locale_get_script('sr-Cyrl');
?>
OO example
<?php
echo Locale::getScript('sr-Cyrl');
?>
See also:
Please login to continue.