array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'locale.getscript.php', 1 => 'Locale::getScript', ), 'up' => array ( 0 => 'class.locale.php', 1 => 'Yerel', ), 'prev' => array ( 0 => 'locale.getregion.php', 1 => 'Locale::getRegion', ), 'next' => array ( 0 => 'locale.lookup.php', 1 => 'Locale::lookup', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/intl/locale/get-script.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0)
Locale::getScript -- locale_get_script — Girdi yereli için yazı yaftasını döndürür
Nesne yönelimli kullanım
Yordamsal kullanım
Girdi yereli için yazı yaftasını döndürür.
yerel
Yazı alt yaftası çıkarılacak yerel.
Varsa yazı alt yaftası, yoksa null
döner.
Örnek 1 locale_get_script() örneği
<?php
echo locale_get_script('sr-Cyrl');
?>
Örnek 2 - Nesne yönelimli kullanım örneği
<?php
echo Locale::getScript('sr-Cyrl');
?>
Yukarıdaki örneğin çıktısı:
Cyrl