Collator::setAttribute
collator_set_attribute
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0)
Collator::setAttribute -- collator_set_attribute — 照合用の属性を設定する
説明
オブジェクト指向型
手続き型
例
例1 collator_set_attribute() の例
<?php
$coll = collator_create( 'en_CA' );
$val = collator_get_attribute( $coll, Collator::NUMERIC_COLLATION );
if ($val === false) {
// エラー処理
} elseif ($val === Collator::ON) {
// 何かすてきなこと
}
?>
+add a note
User Contributed Notes 1 note
galiaf1987 at gmail dot com ¶
1 year ago
//realy example
$collator = new \Collator('en');
$collator->setAttribute(\Collator::NORMALIZATION_MODE, \Collator::ON);
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google