(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0)
intl_error_name — 取得指定錯誤碼的符號名稱
errorCode
ICU 錯誤碼。
返回的字串將與錯誤碼常數的名稱相同。
範例 #1 intl_error_name() 範例
<?php
$coll = collator_create( 'en_RU' );
$err_code = collator_get_error_code( $coll );
printf( "Symbolic name for %d is %s\n.", $err_code, intl_error_name( $err_code ) );
?>
以上範例的輸出結果類似如下:
Symbolic name for -128 is U_USING_FALLBACK_WARNING.