Internationalization intl_get_error_code

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0)

intl_get_error_code — 마지막 오류 코드 가져오기


설명

intl_get_error_code(): int

오류 코드를 가져올 개체가 없을 때 정적 메서드에서 발생한 오류를 처리하는 데 유용합니다.


매개변수

이 함수에는 매개변수가 없습니다.


반환 값

마지막 API 함수 호출에서 반환된 오류 코드입니다.


Examples

예제 #1 intl_get_error_code() 예제

                  
<?php
$coll = collator_create( '<bad_param>' );
if( !$coll ) {
    handle_error( intl_get_error_code() );
}
?>
                  
                

기타