php man page for msgfmt_get_error_message

Query: msgfmt_get_error_message

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

MSGFMT_GET_ERROR_MESSAGE(3)						 1					       MSGFMT_GET_ERROR_MESSAGE(3)

MessageFormatter::getErrorMessage - Get the error text from the last operation

	Object oriented style

SYNOPSIS
public string MessageFormatter::getErrorMessage (void )
DESCRIPTION
Procedural style string msgfmt_get_error_message (MessageFormatter $fmt) Get the error text from the last operation.
PARAMETERS
o $fmt - The message formatter
RETURN VALUES
Description of the last error.
EXAMPLES
Example #1 msgfmt_get_error_message(3) example <?php $fmt = msgfmt_create("en_US", "{0, number} monkeys on {1, number} trees"); $str = msgfmt_format($fmt, array()); if(!$str) { echo "ERROR: ".msgfmt_get_error_message($fmt) . " (" . msgfmt_get_error_code($fmt) . ") "; } ?> Example #2 OO example <?php $fmt = new MessageFormatter("en_US", "{0, number} monkeys on {1, number} trees"); $str = $fmt->format(array()); if(!$str) { echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ") "; } ?> The above example will output: ERROR: msgfmt_format: not enough parameters: U_ILLEGAL_ARGUMENT_ERROR (1)
SEE ALSO
msgfmt_get_error_code(3), intl_get_error_code(3), intl_is_failure(3). PHP Documentation Group MSGFMT_GET_ERROR_MESSAGE(3)
Related Man Pages
numfmt_get_error_message(3) - php
datefmt_get_error_message(3) - php
msgfmt_create(3) - php
msgfmt_parse_message(3) - php
numfmt_get_pattern(3) - php
Similar Topics in the Unix Linux Community
Adapter Errors and Link Errors
Adapter Errors and Link Errors
LS-ERROR 1.0 (Default branch)
Script help needed
ICFB ERROR