<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.rewinddir.php',
    1 => 'rewinddir',
    2 => 'Rewind directory handle',
  ),
  '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' => 'en',
    '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">Rewind directory handle</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="para rdfs-comment">
   Resets the directory stream indicated by
   <code class="parameter">dir_handle</code> to the beginning of the
   directory.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.rewinddir-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">dir_handle</code></dt>
     <dd>
      <p class="para">
       The directory handle <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> previously opened
       with <span class="function"><a href="function.opendir.php" class="function">opendir()</a></span>. If the directory handle is 
       not specified, the last link opened by <span class="function"><a href="function.opendir.php" class="function">opendir()</a></span> 
       is assumed.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.rewinddir-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Не повертає значень.
  </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.0.0</td>
      <td>
       <code class="parameter">dir_handle</code> is now nullable.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


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