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

search for in the

locale_set_default> <i18n 関数
Last updated: Fri, 05 Sep 2008

view this page in

locale_get_default

(No version information available, might be only in CVS)

locale_get_defaultデフォルトのロケールを取得する

説明

string locale_get_default ( void )

この関数は、デフォルトのロケールを返します。これは、 PHP が何らかの機能をローカライズする際に使用します。 このロケールは、setlocale() やシステム設定の影響を受けないことに注意しましょう。

返り値

現在のロケールを表す文字列を返します。

例1 locale_get_default() の例

<?php

// デフォルトのロケールを取得します
echo locale_get_default();

// 新しいロケールを設定し……
locale_set_default('pt_PT');

// ……それを表示します。
echo locale_get_default();

?>

上の例の出力は以下となります。

en_US_POSIX
pt_PT



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

locale_set_default> <i18n 関数
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites