intl_get_error_code
(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
intl_get_error_code — Son hatanın kodunu döndürür
Açıklama
int
intl_get_error_code
( void
)
Duruk yöntemlerde hata oluştuğunda hatanın alınacağı bir nesne yoksa hata kodunu öğrenmek için yararlıdır.
Dönen Değerler
Son API işlevi çağrısından dönen hata kodu.
Örnekler
Örnek 1 - intl_get_error_code() örneği
<?php
$coll = collator_create( '<bad_param>' );
if( !$coll ) {
handle_error( intl_get_error_code() );
}
?>
Ayrıca Bakınız
- intl_is_failure() - Belirtilen hata kodunun bir başarısızlık göstergesi olup olmadığına bakar
- intl_error_name() - Belirtilen hata kodunun simgesel ismini döndürür
- intl_get_error_message() - Son hatayı açıklayan bir dizge ile döner
- collator_get_error_code() - Karşılaştırıcının son hata kodunu döndürür
- numfmt_get_error_code() - Biçemleyicinin son hata numarası ile döner
There are no user contributed notes for this page.
