intl_is_failure
PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0
intl_is_failure - Check whether the given error code indicates failure
Manual
intl_is_failure(
int$errorCode ): bool
Parameters
- errorCode
-
is a value that returned by functions: intl_get_error_code, collator_get_error_code .
Return Values
true if it the code indicates some failure, and false in case of success or a warning.