« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 31 for collator (0.001 sec.)
Collator クラス | PHP 8.3 10838
Collator クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに 各ロケール固有の並び順を考慮した文字列の比較機能を提供します。 クラス概要 class Collator { /* 定数 */ public const int DEFAULT_VALUE ; public const int PRIMARY ; pu ... MERIC ; /* メソッド */ public function __construct ( string $locale ) public function asort ( array &$array , int $flags = Collator::SORT_REGULAR ): bool public function compare ( string $string1 , string $string2 ): int | false public static function cr ... eate ( string $locale ): ? Collator public function getAttribute ( int $attribute ): int | false public function getErrorCode (): int | false public function ... int $value ): bool public function setStrength ( int $strength ): true public function sort ( array &$array , int $flags = Collator::SORT_REGULAR ): bool public function sortWithSortKeys ( array &$array ): bool } 定義済み定数 Collator::FRENCH_COLLATION i ...
https://man.mtool.work/php/8.3/class.collator.html
Collator::asort — インデックスの情報を保持しつつ配列を並べ替える | PHP 8.3 9965
Collator::asort collator_asort (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::asort -- collator_asort — インデックスの情報を保持しつつ配列を並べ替える 説明 オブジェクト指向型 public function Collator::asort ( array &$array , i ... nt $flags = Collator::SORT_REGULAR ): bool 手続き型 function collator_asort ( Collator $object , array &$array , int $flags = Collator::SORT_RE ... 配列の要素には、現在のロケールの規則にしたがった並び順が適用されます。 PHP の標準関数 asort() と同等です。 パラメータ object Collator オブジェクト。 array 並べ替えたい文字列の配列。 flags オプションの並べ替え方式。以下のいずれか。 Collator::SORT_REGULAR - ... 通常の比較 (型を変更しない) Collator::SORT_NUMERIC - 数値としての比較 Collator::SORT_STRING - 文字列としての比較 デフォルトの flags の値は Collator::SORT_REGUL ...
https://man.mtool.work/php/8.3/collator.asort.html
Collator::getErrorCode — collator の直近のエラーコードを取得する | PHP 8.3 9900
Collator::getErrorCode collator_get_error_code (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::getErrorCode -- collator_get_error_code — collator の直近のエラーコードを取得する 説明 オブジェクト指向型 public function Collator:: ... getErrorCode (): int | false 手続き型 function collator_get_error_code ( Collator $object ): int | false パラメータ object Collator オブジェクト。 戻り値 直近の Collator API 関数 ... コールが返したエラーコードを返します。 失敗した場合に false を返します 例 例1 collator_get_error_code() の例 <?php $coll = collator_create ( 'en_US' ); if( collator_get_attribute ( $coll , Collator :: FRENCH_C ... OLLATION ) === false ) handle_error ( collator_get_error_code () ); ?> 参考 collator_get_error_message() - collator の直近のエラーコードのテキストを取得する 他のマニュア ...
https://man.mtool.work/php/8.3/collator.geterrorcode.html
Collator::sort — 指定した collator で配列を並べ替える | PHP 8.3 9900
Collator::sort collator_sort (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::sort -- collator_sort — 指定した collator で配列を並べ替える 説明 オブジェクト指向型 public function Collator::sort ( array &$array , int $flags = Collator ... lator::SORT_REGULAR ): bool 手続き型 function collator_sort ( Collator $object , array &$array , int $flags = Collator::SORT_REGULAR ): bool この関数は、現在のロケールの規則にも ... とづいて配列を並べ替えます。 PHP の標準関数 sort() と同等です。 パラメータ object Collator オブジェクト。 array 並べ替えたい文字列の配列。 flags オプションの並べ替え方式。以下のいずれか。 Collator::SORT_REGULAR - ... 通常の比較 (型を変更しない) Collator::SORT_NUMERIC - 数値としての比較 Collator::SORT_STRING - 文字列としての比較 デフォルトの並べ替え方式は Collator::SORT_REGU ...
https://man.mtool.work/php/8.3/collator.sort.html
Collator::getErrorMessage — collator の直近のエラーコードのテキストを取得する |... 9787
Collator::getErrorMessage collator_get_error_message (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::getErrorMessage -- collator_get_error_message — collator の直近のエラーコードのテキストを取得する 説明 オブジェクト指向型 publ ... ic function Collator::getErrorMessage (): string | false 手続き型 function collator_get_error_message ( Collator $object ): string | false 直近 ... のエラーのメッセージを取得します。 パラメータ object Collator オブジェクト。 戻り値 直近の Collator API 関数コールで発生したエラーの説明を返します。 失敗した場合に false を返します 例 ... 例1 collator_get_error_message() の例 <?php $coll = collator_create ( 'lt' ); if( collator_compare ( $coll , 'y' , 'k' ) === false ) { ...
https://man.mtool.work/php/8.3/collator.geterrormessage.html
Collator::setAttribute — 照合用の属性を設定する | PHP 8.3 9771
Collator::setAttribute collator_set_attribute (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::setAttribute -- collator_set_attribute — 照合用の属性を設定する 説明 オブジェクト指向型 public function Collator::setAttribute ( int ... $attribute , int $value ): bool 手続き型 function collator_set_attribute ( Collator $object , int $attribute , int $value ): bool パラメータ object Collator オブジェクト。 attribute ... 属性。 value 属性の値。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 collator_set_attribute() の例 <?php $coll = collator_create ( 'en_CA' ); collator_set_attribute ( $coll , Collator :: NORMALIZATION ... _MODE , Collator :: ON ); ?> 参考 Collator の定数 collator_get_attribute() - 照合用の属性の値を取得する collator_set_strength() - 照合強度を ...
https://man.mtool.work/php/8.3/collator.setattribute.html
Collator::getAttribute — 照合用の属性の値を取得する | PHP 8.3 9738
Collator::getAttribute collator_get_attribute (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::getAttribute -- collator_get_attribute — 照合用の属性の値を取得する 説明 オブジェクト指向型 public function Collator::getAttribute ( ... int $attribute ): int | false 手続き型 function collator_get_attribute ( Collator $object , int $attribute ): int | false collator の属性の値を取得します。 パラメータ object Colla ... tor オブジェクト。 attribute 値を取得したい属性。 戻り値 属性の値を返します。 失敗した場合に false を返します 例 例1 collator_get_attribute() の例 <?php $coll = collator_create ( 'en_CA' ); $val = collator_get_attribute ( $coll , Collator :: NUMERI ... C_COLLATION ); if( $val === false ) { // エラー処理 } ?> 参考 Collator の定数 collator_set_attribute() - 照合用の属性を設定する collator_get_strength() - 現在の照合強度を取得する 他のマニュアル ...
https://man.mtool.work/php/8.3/collator.getattribute.html
Collator::sortWithSortKeys — 指定した collator とキーで配列を並べ替える | PHP 8... 9690
Collator::sortWithSortKeys collator_sort_with_sort_keys (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::sortWithSortKeys -- collator_sort_with_sort_keys — 指定した collator とキーで配列を並べ替える 説明 オブジェクト指向型 publi ... c function Collator::sortWithSortKeys ( array &$array ): bool 手続き型 function collator_sort_with_sort_keys ( Collator $object , array &$arra ... y ): bool collator_sort() と似ていますが、 ucol_getSortKey() が作成した ICU ソートキーを用いることで 大きな配列をより高速に処理できます。 パラ ... メータ object Collator オブジェクト。 array 並べ替えたい文字列の配列。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 co ...
https://man.mtool.work/php/8.3/collator.sortwithsortkeys.html
Collator::getStrength — 現在の照合強度を取得する | PHP 8.3 9657
Collator::getStrength collator_get_strength (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::getStrength -- collator_get_strength — 現在の照合強度を取得する 説明 オブジェクト指向型 public function Collator::getStrength (): int 手 ... 続き型 function collator_get_strength ( Collator $object ): int パラメータ object Collator オブジェクト。 戻り値 現在の照合強度を返します。 失敗した ... 場合に false を返します 例 例1 collator_get_strength() の例 <?php $coll = collator_create ( 'en_US' ); $strength = collator_get_strength ( $coll ); ?> 参考 Collat ... or の定数 collator_set_strength() - 照合強度を設定する collator_get_attribute() - 照合用の属性の値を取得する 他のマニュアルの関連ページ Linux ...
https://man.mtool.work/php/8.3/collator.getstrength.html
Collator::create — collator を作成する | PHP 8.3 9609
Collator::create collator_create (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::create -- collator_create — collator を作成する 説明 オブジェクト指向型 public static function Collator::create ( string $locale ): ? Collator 手続 ... き型 function collator_create ( string $locale ): ? Collator すでに指定しているオプションを用いて文字列を比較します。 パラメータ locale 照合規則を ... 列を渡した場合はデフォルトのロケールの照合規則を使用します。 "root" を渡した場合は » UCA の規則を使用します。 戻り値 新しい Collator オブジェクトのインスタンス、 あるいはエラー時に null を返します。 例 例1 collator_create() の例 <?php $coll = collator_cre ... ate ( 'en_US' ); if( !isset( $coll ) ) { printf ( "Collator creation failed: %s\n" , intl_get_error_message () ); exit( 1 ); } ?> 参考 Collator::__construct() - collator を作成する 他 ...
https://man.mtool.work/php/8.3/collator.create.html
PREV 1 2 3 4 NEXT