INTL_ERROR_NAME(3) 1 INTL_ERROR_NAME(3)
intl_error_name - Get symbolic name for a given error code
SYNOPSIS
string intl_error_name (int $error_code)
DESCRIPTION
Return ICU error code name.
PARAMETERS
o $error_code
- ICU error code.
RETURN VALUES
The returned string will be the same as the name of the error code constant.
EXAMPLES
Example #1
intl_error_name(3) example
<?php
$coll = collator_create( 'en_RU' );
$err_code = collator_get_error_code( $coll );
printf( "Symbolic name for %d is %s
.", $err_code, intl_error_name( $err_code ) );
?>
The above example will output something similar to:
Symbolic name for -128 is U_USING_FALLBACK_WARNING.
SEE ALSO
intl_is_failure(3), intl_get_error_code(3), intl_get_error_message(3).
PHP Documentation Group INTL_ERROR_NAME(3)