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

search for in the

Normalizer> <Locale::parseLocale
[edit] Last updated: Fri, 23 Mar 2012

view this page in

Locale::setDefault

locale_set_default

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

Locale::setDefault -- locale_set_defaultÖntanımlı çalışma anı yerelini tanımlar

Açıklama

Nesne yönelimli kullanım

static bool Locale::setDefault ( string $yerel )

Yordamsal kullanım

bool locale_set_default ( string $yerel )

Öntanımlı çalışma anı yerelini yerel olarak tanımlar. Bu değişiklik, küresel 'default_locale' INTL yerel betimleyicisinin değerini ayarlar. UAX #35 uzantıları kabul edilir.

Değiştirgeler

yerel

BCP 47 uyumlu bir dil yaftası.

Dönen Değerler

Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.

Örnekler

Örnek 1 - locale_set_default() örneği

<?php
locale_set_default
('tr-TR');
echo 
locale_get_default();
?>

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

<?php
Locale
::setDefault('tr-TR');
echo 
Locale::getDefault();
?>

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

tr-TR

Ayrıca Bakınız



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

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