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

search for in the

国際化 関数> <定義済み定数
Last updated: Fri, 05 Sep 2008

view this page in

基本的な使用法

各モジュールには、 手続き型とオブジェクト指向型の二種類の API が存在します。 それぞれの API について、対応するドキュメントで説明します。

注意: 入力文字列は、すべて UTF-8 でエンコードされていなければなりません。 出力文字列も、すべて UTF-8 となります。

例1 手続き型 API の使用例

<?php
$coll  
collator_create('en_US');
$result collator_compare($coll"string#1""string#2");
?>

例2 オブジェクト指向型 API の使用例

<?php
$coll 
= new Collator('en_US');
$al   $coll->getLocale(Locale::ACTUAL_LOCALE);
echo 
"実際のロケール: $al\n";

$formatter = new NumberFormatter('en_US'NumberFormatter::DECIMAL);
echo 
$formatter->format(1234567);
?>


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

国際化 関数> <定義済み定数
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites