array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'collator.geterrormessage.php', 1 => 'Collator::getErrorMessage', ), 'up' => array ( 0 => 'class.collator.php', 1 => 'Karşılaştırıcı', ), 'prev' => array ( 0 => 'collator.geterrorcode.php', 1 => 'Collator::getErrorCode', ), 'next' => array ( 0 => 'collator.getlocale.php', 1 => 'Collator::getLocale', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/intl/collator/get-error-message.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0)
Collator::getErrorMessage -- collator_get_error_message — Karşılaştırıcının son hata iletisini döndürür
Nesne yönelimli kullanım
Yordamsal kullanım
Son hatanın iletisini döndürür.
nesne
Collator nesnesi.
Son karşılaştırma işlevi çağrısında oluşan hatanın
açıklaması, başarısızlık durumunda false
döner.
Örnek 1 - collator_get_error_message() örneği
<?php
$coll = collator_create( 'lt' );
if( collator_compare( $coll, 'y', 'k' ) === false ) {
echo collator_get_error_message( $coll );
}
?>