intl_get_error_message

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0)
Get description of the last error
string intl_get_error_message ( void )

Get error message from last internationalization function called.

Returns:

Description of an error occurred in the last API function call.

Examples:
intl_get_error_message() example
<?php
if( Collator::getAvailableLocales() === false ) {
    show_error( intl_get_error_message() );
}
?>

See also:

intl_error_name() -

intl_get_error_code() -

intl_is_failure() -

collator_get_error_message() -

numfmt_get_error_message() -

doc_php
2016-02-24 15:58:20
Comments
Leave a Comment

Please login to continue.