downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Locale::getRegion> <Locale::getKeywords
[edit] Last updated: Fri, 23 Mar 2012

view this page in

Locale::getPrimaryLanguage

locale_get_primary_language

(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)

Locale::getPrimaryLanguage -- locale_get_primary_languageGirdi yerelinden anadil kodunu döndürür

Açıklama

Nesne yönelimli kullanım

static string Locale::getPrimaryLanguage ( string $yerel )

Yordamsal kullanım

string locale_get_primary_language ( string $yerel )

Girdi yerelinde belirtilen anadil kodunu döndürür.

Değiştirgeler

yerel

Anadil kodu çıkarılacak yerel.

Dönen Değerler

Varsa anadil kodu, yoksa NULL döner.

Örnekler

Örnek 1 - locale_get_primary_language() örneği

<?php
echo locale_get_primary_language('zh-Hant');
?>

Örnek 2 - Nesne yönelimli kullanım örneği

<?php
echo Locale::getPrimaryLanguage('zh-Hant');
?>

Yukarıdaki örneğin çıktısı:

zh

Ayrıca Bakınız



add a note add a note User Contributed Notes Locale::getPrimaryLanguage
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites