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

search for in the

Locale::getDefault> <Locale::filterMatches
[edit] Last updated: Fri, 17 May 2013

view this page in

Locale::getAllVariants

locale_get_all_variants

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

Locale::getAllVariants -- locale_get_all_variants入力ロケールの変化系を取得する

説明

オブジェクト指向型

static array Locale::getAllVariants ( string $locale )

手続き型

array locale_get_all_variants ( string $locale )

入力ロケールの変化系を取得します。

パラメータ

locale

変化系を取得したいロケール。

返り値

そのロケールのすべての variant サブタグを含む配列、あるいは存在しない場合に NULL を返します。

例1 locale_get_all_variants() の例

<?php
$arr 
locale_get_all_variants('sl_IT_NEDIS_ROJAZ_1901');
var_export$arr );
?>

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

<?php
 $arr 
Locale::getAllVariants('sl_IT_NEDIS_ROJAZ_1901');
 
var_export$arr );
?>

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

array (
    0 => 'NEDIS',
    1 => 'ROJAZ',
    2 => '1901',
)

参考



add a note add a note User Contributed Notes Locale::getAllVariants - [0 notes]
There are no user contributed notes for this page.

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