<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.messageformatter.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'messageformatter.geterrorcode.php',
    1 => 'MessageFormatter::getErrorCode',
    2 => 'Get the error code from last operation',
  ),
  'up' => 
  array (
    0 => 'class.messageformatter.php',
    1 => 'MessageFormatter',
  ),
  'prev' => 
  array (
    0 => 'messageformatter.formatmessage.php',
    1 => 'MessageFormatter::formatMessage',
  ),
  'next' => 
  array (
    0 => 'messageformatter.geterrormessage.php',
    1 => 'MessageFormatter::getErrorMessage',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/messageformatter/get-error-code.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="messageformatter.geterrorcode" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MessageFormatter::getErrorCode</h1>
  <h1 class="refname">msgfmt_get_error_code</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL intl &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">MessageFormatter::getErrorCode</span> -- <span class="refname">msgfmt_get_error_code</span> &mdash; <span class="dc-title">Get the error code from last operation</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-messageformatter.geterrorcode-description">
  <h3 class="title">说明</h3>
  <p class="para">
   面向对象风格
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>MessageFormatter::getErrorCode</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   过程化风格
  </p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>msgfmt_get_error_code</strong></span>(<span class="methodparam"><span class="type"><a href="class.messageformatter.php" class="type MessageFormatter">MessageFormatter</a></span> <code class="parameter">$formatter</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Get the error code from last operation.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-messageformatter.geterrorcode-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">formatter</code></dt>
     <dd>
      <p class="para">
       The message formatter
      </p>
     </dd>
    
   </dl>
  </p>
 </div>



 <div class="refsect1 returnvalues" id="refsect1-messageformatter.geterrorcode-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-messageformatter.geterrorcode-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="messageformatter.geterrormessage.php" class="function" rel="rdfs-seeAlso">msgfmt_get_error_message()</a> - Get the error text from the last operation</span></li>
    <li><span class="function"><a href="function.intl-get-error-code.php" class="function" rel="rdfs-seeAlso">intl_get_error_code()</a> - Get the last error code</span></li>
    <li><span class="function"><a href="function.intl-is-failure.php" class="function" rel="rdfs-seeAlso">intl_is_failure()</a> - Check whether the given error code indicates failure</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>