PHP 8.3.4 Released!

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 Collator::getAttribute(int $attribute): int|false

手続き型

collator_get_attribute(Collator $object, int $attribute): int|false

collator の属性の値を取得します。

パラメータ

object

Collator オブジェクト。

attribute

値を取得したい属性。

戻り値

属性の値を返します。 失敗した場合に false を返します

例1 collator_get_attribute() の例

<?php
$coll
= collator_create( 'en_CA' );
$val = collator_get_attribute( $coll, Collator::NUMERIC_COLLATION );
if(
$val === false )
{
// エラー処理
}
?>

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top