MessageFormatter::getErrorMessage
msgfmt_get_error_message
Get the error text from the last operation
&reftitle.description;
Object oriented style
string
MessageFormatter::getErrorMessage
Procedural style
string
msgfmt_get_error_message
MessageFormatterfmt
Get the error text from the last operation.
&reftitle.parameters;
fmt
The message formatter
&reftitle.returnvalues;
Description of the last error.
&reftitle.examples;
msgfmt_get_error_message example
]]>
OO example
format(array());
if(!$str) {
echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ")\n";
}
?>
]]>
&example.outputs;
&reftitle.seealso;
msgfmt_get_error_code
intl_get_error_code
intl_is_failure