Home > PHP > Function > intl > intl_error_name()

intl_error_name()

intl_error_name - Get symbolic name for a given error code

Syntax

string intl_error_name (int $error_code)

Arguments

  • error_code - ICU error code.

Description

Return ICU error code name.

Version

PHP 5.3.0, PECL intl >= 1.0.0

Return value

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