略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: intl_error_name

2025-03-31

intl_error_name

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

intl_error_nameGet symbolic name for a given error code

说明

intl_error_name(int $errorCode): string

Return ICU error code name.

参数

errorCode

ICU error code.

返回值

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

示例

示例 #1 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.

参见

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/function.intl-error-name.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3