<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.arrayiterator.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'arrayiterator.natsort.php',
    1 => 'ArrayIterator::natsort',
    2 => '自然順で配列をソートする',
  ),
  'up' => 
  array (
    0 => 'class.arrayiterator.php',
    1 => 'ArrayIterator',
  ),
  'prev' => 
  array (
    0 => 'arrayiterator.natcasesort.php',
    1 => 'ArrayIterator::natcasesort',
  ),
  'next' => 
  array (
    0 => 'arrayiterator.next.php',
    1 => 'ArrayIterator::next',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/spl/arrayiterator/natsort.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="arrayiterator.natsort" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ArrayIterator::natsort</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ArrayIterator::natsort</span> &mdash; <span class="dc-title">自然順で配列をソートする</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-arrayiterator.natsort-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ArrayIterator::natsort</strong></span>(): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   &quot;自然順&quot; アルゴリズムを使って、値でエントリをソートします。
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
 <p class="para">
  比較結果が等しくなる二つの要素があった場合、それらの並び順は保持されます。PHP 8.0.0 より前のバージョンでは、ソートした配列におけるそれらの並び順は不定でした。
 </p>
</p></blockquote>

 </div>


 <div class="refsect1 parameters" id="refsect1-arrayiterator.natsort-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">この関数にはパラメータはありません。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-arrayiterator.natsort-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   常に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を返します。
  </p>
 </div>


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

     </thead>

     <tbody class="tbody">
      <tr>
 <td>8.2.0</td>
 <td>
  戻り値の型が、<strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> になりました。これより前のバージョンでは、<span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> でした。
 </td>
</tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-arrayiterator.natsort-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="arrayiterator.asort.php" class="methodname" rel="rdfs-seeAlso">ArrayIterator::asort()</a> - 値で配列をソートする</span></li>
    <li><span class="methodname"><a href="arrayiterator.ksort.php" class="methodname" rel="rdfs-seeAlso">ArrayIterator::ksort()</a> - キーで配列をソートする</span></li>
    <li><span class="methodname"><a href="arrayiterator.natcasesort.php" class="methodname" rel="rdfs-seeAlso">ArrayIterator::natcasesort()</a> - 大文字小文字を区別せずに自然順で配列をソートする</span></li>
    <li><span class="methodname"><a href="arrayiterator.uasort.php" class="methodname" rel="rdfs-seeAlso">ArrayIterator::uasort()</a> - ユーザー定義の比較関数を使ってソートを行い、インデックスとの関連を管理する</span></li>
    <li><span class="methodname"><a href="arrayiterator.uksort.php" class="methodname" rel="rdfs-seeAlso">ArrayIterator::uksort()</a> - ユーザー定義の比較関数を使い、キーでソートする</span></li>
    <li><span class="function"><a href="function.natsort.php" class="function" rel="rdfs-seeAlso">natsort()</a> - &quot;自然順&quot;アルゴリズムで配列をソートする</span></li>
   </ul>
  </p>
 </div>


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