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

search for in the

Locale::getDisplayScript> <Locale::getDisplayName
Last updated: Fri, 13 Nov 2009

view this page in

Locale::getDisplayRegion

locale_get_display_region

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

Locale::getDisplayRegion -- locale_get_display_region入力ロケールの地域の表示名を、適切に地域化して返す

説明

オブジェクト指向型

static string Locale::getDisplayRegion ( string $locale [, string $in_locale ] )

手続き型

string locale_get_display_region ( string $locale [, string $in_locale ] )

入力ロケールの地域の表示名を、適切に地域化して返します。 NULL の場合はデフォルトのロケールを使用します。

パラメータ

locale

表示地域を返したいロケール。

in_locale

オプションのフォーマットロケール。 地域名の表示に使用します。

返り値

$locale に対応する地域の表示名を、 $in_locale にあわせた形式で返します。

例1 locale_get_display_region() の例

<?php
echo locale_get_display_region('sl-Latn-IT-nedis''en');
echo 
";\n";
echo 
locale_get_display_region('sl-Latn-IT-nedis''fr');
echo 
";\n";
echo 
locale_get_display_region('sl-Latn-IT-nedis''de');
?>

例2 オブジェクト指向の例

<?php
echo Locale::getDisplayRegion('sl-Latn-IT-nedis''en');
echo 
";\n";
echo 
Locale::getDisplayRegion('sl-Latn-IT-nedis''fr');
echo 
";\n";
echo 
Locale::getDisplayRegion('sl-Latn-IT-nedis''de');
?>

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

Italy;
Italie;
Italien

参考



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

Locale::getDisplayScript> <Locale::getDisplayName
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites