i18n_loc_get_defaultとは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > i18n_loc_get_defaultの意味・解説 

i18n_loc_get_default

(No version information available, might be only in CVS)
i18n_loc_get_default — デフォルトのロケールを取得する

説明

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

返り値

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

例 2383. i18n_loc_get_default() の例
<?php

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

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

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

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

en_US_POSIX
pt_PT

    


参考

i18n_loc_set_default()




英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「i18n_loc_get_default」の関連用語

i18n_loc_get_defaultのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



i18n_loc_get_defaultのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2024 by the PHP Documentation Group.

©2024 GRAS Group, Inc.RSS