CakeFest 2024: The Official CakePHP Conference

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_messagecollator の直近のエラーコードのテキストを取得する

説明

オブジェクト指向型

public Collator::getErrorMessage(): string|false

手続き型

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 ) {
echo
collator_get_error_message( $coll );
}
?>

参考

add a note

User Contributed Notes

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