Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MessageFormatter::formatMessageMessageFormatter::getErrorMessage>
^MessageFormatterLast updated: Mon, 26 Oct 2026

MessageFormatter::getErrorCode

msgfmt_get_error_code

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0)

MessageFormatter::getErrorCode -- msgfmt_get_error_code — Get the error code from last operation

Description

Object-oriented style

public function MessageFormatter::getErrorCode(): int

Procedural style

function msgfmt_get_error_code(MessageFormatter $formatter): int

Get the error code from last operation.

Parameters

formatter

The message formatter

Return Values

The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR.

See Also


<MessageFormatter::formatMessageMessageFormatter::getErrorMessage>
^MessageFormatterLast updated: Mon, 26 Oct 2026