<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.strings.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.strtolower.php',
    1 => 'strtolower',
    2 => '文字列を小文字にする',
  ),
  'up' => 
  array (
    0 => 'ref.strings.php',
    1 => 'String 関数',
  ),
  'prev' => 
  array (
    0 => 'function.strtok.php',
    1 => 'strtok',
  ),
  'next' => 
  array (
    0 => 'function.strtoupper.php',
    1 => 'strtoupper',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/strings/functions/strtolower.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.strtolower" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">strtolower</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">strtolower</span> &mdash; <span class="dc-title">文字列を小文字にする</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.strtolower-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>strtolower</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="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   <code class="parameter">string</code>
   の、ASCII のアルファベット部分をすべて小文字にして返します｡
  </p>
  <p class="para">
   <code class="literal">&quot;A&quot;</code> (0x41) から <code class="literal">&quot;Z&quot;</code> (0x5a)
   までの範囲のバイト列は、それぞれのバイト値に 32 を加えることによって
   対応する小文字に変換されます。
  </p>
  <p class="para">
   マルチバイトの UTF-8 文字は無視されるので、
   UTF-8 でエンコードされた文字列中にある ASCII 文字を変換する際も、
   このやり方が使えます。
   マルチバイトの ASCII でない文字を変換するには、
   <span class="function"><a href="function.mb-strtolower.php" class="function">mb_strtolower()</a></span> を使います。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.strtolower-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">string</code></dt>
     <dd>
      <p class="para">
       入力文字列。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.strtolower-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   小文字に変換した文字列を返します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.strtolower-changelog">
  <h3 class="title">変更履歴</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>バージョン</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     
 <tr>
  <td>8.2.0</td>
  <td>
   ケース変換は、<span class="function"><a href="function.setlocale.php" class="function">setlocale()</a></span>
   で設定されたロケールに依存しなくなりました。
   ASCII 文字のみが変換されます。
  </td>
 </tr>


    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.strtolower-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>例1 <span class="function"><strong>strtolower()</strong></span> の例</strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$str </span><span style="color: #007700">= </span><span style="color: #DD0000">"Mary Had A Little Lamb and She LOVED It So"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$str </span><span style="color: #007700">= </span><span style="color: #0000BB">strtolower</span><span style="color: #007700">(</span><span style="color: #0000BB">$str</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$str</span><span style="color: #007700">; </span><span style="color: #FF8000">// mary had a little lamb and she loved it so を返します<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>   
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.strtolower-notes">
  <h3 class="title">注意</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: <span class="simpara">この関数はバイナリデータに対応しています。
</span></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.strtolower-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.strtoupper.php" class="function" rel="rdfs-seeAlso">strtoupper()</a> - 文字列を大文字にする</span></li>
    <li><span class="function"><a href="function.ucfirst.php" class="function" rel="rdfs-seeAlso">ucfirst()</a> - 文字列の最初の文字を大文字にする</span></li>
    <li><span class="function"><a href="function.ucwords.php" class="function" rel="rdfs-seeAlso">ucwords()</a> - 文字列の各単語の最初の文字を大文字にする</span></li>
    <li><span class="function"><a href="function.mb-strtolower.php" class="function" rel="rdfs-seeAlso">mb_strtolower()</a> - 文字列を小文字にする</span></li>
   </ul>
  </p>
 </div>


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