<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mbstring.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.mb-ucfirst.php',
    1 => 'mb_ucfirst',
    2 => 'Make a string\'s first character uppercase',
  ),
  'up' => 
  array (
    0 => 'ref.mbstring.php',
    1 => '多字节字符串 函数',
  ),
  'prev' => 
  array (
    0 => 'function.mb-trim.php',
    1 => 'mb_trim',
  ),
  'next' => 
  array (
    0 => 'book.pspell.php',
    1 => 'Pspell',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mbstring/functions/mb-ucfirst.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mb-ucfirst" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mb_ucfirst</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.4.0)</p><p class="refpurpose"><span class="refname">mb_ucfirst</span> &mdash; <span class="dc-title">Make a string&#039;s first character uppercase</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.mb-ucfirst-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mb_ucfirst</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$string</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$encoding</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="simpara">
   Performs a multi-byte safe <span class="function"><a href="function.ucfirst.php" class="function">ucfirst()</a></span> operation,
   and returns a string with the first character of
   <code class="parameter">string</code> title-cased.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mb-ucfirst-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">string</code></dt>
    <dd>
     <span class="simpara">
      The input string.
     </span>
    </dd>
   
   
    <dt><code class="parameter">encoding</code></dt>
    <dd>
     <span class="simpara">
      The string encoding.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mb-ucfirst-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   Returns the resulting string.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.mb-ucfirst-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    By contrast to the standard case folding functions such as
    <span class="function"><a href="function.strtolower.php" class="function">strtolower()</a></span> and <span class="function"><a href="function.strtoupper.php" class="function">strtoupper()</a></span>,
    case folding is performed on the basis of the Unicode character
    properties. Thus the behaviour of this function is not affected
    by locale settings and it can convert any characters that have
    &#039;alphabetic&#039; property, such a-umlaut (ä).
   </p>
  </p></blockquote>
  <p class="para">
   For more information about the Unicode properties, please see <a href="http://www.unicode.org/reports/tr21/" class="link external">&raquo;&nbsp;http://www.unicode.org/reports/tr21/</a>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mb-ucfirst-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.mb-lcfirst.php" class="function" rel="rdfs-seeAlso">mb_lcfirst()</a> - Make a string's first character lowercase</span></li>
   <li><span class="function"><a href="function.mb-convert-case.php" class="function" rel="rdfs-seeAlso">mb_convert_case()</a> - 对字符串进行大小写转换</span></li>
   <li><span class="function"><a href="function.ucfirst.php" class="function" rel="rdfs-seeAlso">ucfirst()</a> - 将字符串的首字母转换为大写</span></li>
  </ul>
 </div>


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