• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • intl_error_name()

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

    Get symbolic name for a given error code

    说明

    intl_error_name(int $error_code): string

    Return ICU error code name.

    参数

    $error_code

    ICU error code.

    返回值

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

    范例

    intl_error_name() 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.
    

    参见