(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0)
intl_get_error_code — 取得最後一個錯誤碼
此函式沒有參數。
最後一次 API 函式呼叫返回的錯誤碼。
範例 #1 intl_get_error_code() 範例
<?php
$coll = collator_create( '<bad_param>' );
if( !$coll ) {
handle_error( intl_get_error_code() );
}
?>