|
MessageFormatter::getErrorCodemsgfmt_get_error_codeGet the error code from last operation DescriptionObject oriented style
public
int
MessageFormatter::getErrorCode
( void
)
Procedural style
int
msgfmt_get_error_code
( MessageFormatter
$fmt
)Get the error code from last operation. Parameters
Return ValuesThe error code, one of UErrorCode values. Initial value is U_ZERO_ERROR. ExamplesExample #1 msgfmt_get_error_code example
<?php Example #2 OO example
<?php The above example will output: ERROR: msgfmt_format: not enough parameters: U_ILLEGAL_ARGUMENT_ERROR (1) See Also
|