Home > PHP > Function > intl > intl_is_failure()

intl_is_failure()

intl_is_failure - Check whether the given error code indicates failure

Syntax

bool intl_is_failure (int $error_code)

Arguments

  • error_code - is a value that returned by functions: intl_get_error_code(), collator_get_error_code().

Description

Version

PHP 5.3.0, PECL intl >= 1.0.0

Return value

TRUE if it the code indicates some failure, and FALSE in case of success or a warning.