PHP.nl

intl_error_name

intl_error_name

Get symbolic name for a given error code

string **intl_error_name** int $errorCode

Return ICU error code name.

errorCodeICU error code.

The returned string will be the same as the name of the error code constant.

Voorbeeld: example

<?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.

intl_is_failure``intl_get_error_code``intl_get_error_message