<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.dir.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.rewinddir.php',
    1 => 'rewinddir',
    2 => 'ディレクトリハンドルを元に戻す',
  ),
  'up' => 
  array (
    0 => 'ref.dir.php',
    1 => 'ディレクトリ 関数',
  ),
  'prev' => 
  array (
    0 => 'function.readdir.php',
    1 => 'readdir',
  ),
  'next' => 
  array (
    0 => 'function.scandir.php',
    1 => 'scandir',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/dir/functions/rewinddir.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.rewinddir" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">rewinddir</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">rewinddir</span> &mdash; <span class="dc-title">ディレクトリハンドルを元に戻す</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.rewinddir-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>rewinddir</strong></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.resource.php" class="type resource">resource</a></span></span> <code class="parameter">$dir_handle</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.void.php" class="type void">void</a></span></div>

  <p class="simpara">
   <code class="parameter">dir_handle</code> で指定されたディレクトリの
   ストリームをディレクトリの先頭にリセットします。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.rewinddir-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">dir_handle</code></dt>
    <dd>
     <span class="simpara">
      <span class="function"><a href="function.opendir.php" class="function">opendir()</a></span> が事前にオープンした
      ディレクトリハンドルを示す <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>。
      <code class="parameter">dir_handle</code> が <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> の場合は、
      <span class="function"><a href="function.opendir.php" class="function">opendir()</a></span> が最後にオープンしたものを使用します。
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.rewinddir-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   値を返しません。
  </p>
 </div>


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

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.5.0</td>
      <td>
       <code class="parameter">dir_handle</code>
       に <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> を指定することは、推奨されなくなりました。
       代わりに、最後にオープンしたディレクトリハンドルを明示的に指定すべきです。
      </td>
     </tr>

     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">dir_handle</code> は、nullable になりました。
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.rewinddir-examples">
  <h3 class="title">例</h3>
  <p class="simpara">
   完全なサンプルコードは、
   <span class="function"><a href="function.opendir.php" class="function">opendir()</a></span> のドキュメントを参照ください。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.rewinddir-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.opendir.php" class="function" rel="rdfs-seeAlso">opendir()</a> - ディレクトリハンドルをオープンする</span></li>
   <li><span class="function"><a href="function.readdir.php" class="function" rel="rdfs-seeAlso">readdir()</a> - ディレクトリハンドルからエントリを読み込む</span></li>
   <li><span class="function"><a href="function.closedir.php" class="function" rel="rdfs-seeAlso">closedir()</a> - ディレクトリハンドルをクローズする</span></li>
   <li><span class="function"><a href="function.dir.php" class="function" rel="rdfs-seeAlso">dir()</a> - ディレクトリクラスのインスタンスを返す</span></li>
   <li><span class="function"><a href="function.is-dir.php" class="function" rel="rdfs-seeAlso">is_dir()</a> - ファイルがディレクトリかどうかを調べる</span></li>
   <li><span class="function"><a href="function.glob.php" class="function" rel="rdfs-seeAlso">glob()</a> - パターンにマッチするパス名を探す</span></li>
   <li><span class="function"><a href="function.scandir.php" class="function" rel="rdfs-seeAlso">scandir()</a> - 指定されたパスのファイルとディレクトリのリストを取得する</span></li>
  </ul>
 </div>

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