Source of: /manual/en/function.rewinddir.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = 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 => 'en',
),
'this' =>
array (
0 => 'function.rewinddir.php',
1 => 'rewinddir',
),
'up' =>
array (
0 => 'ref.dir.php',
1 => 'Directory Functions',
),
'prev' =>
array (
0 => 'function.readdir.php',
1 => 'readdir',
),
'next' =>
array (
0 => 'function.scandir.php',
1 => 'scandir',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.rewinddir" class="refentry">
<div class="refnamediv">
<h1 class="refname">rewinddir</h1>
<p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">rewinddir</span> — <span class="dc-title">Rewind directory handle</span></p>
</div>
<a name="function.rewinddir.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type"><span class="type void">void</span></span> <span class="methodname"><b>rewinddir</b></span>
([ <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$dir_handle</tt></span>
] )</div>
<p class="para rdfs-comment">
Resets the directory stream indicated by
<i><tt class="parameter">dir_handle</tt></i>
to the beginning of the
directory.
</p>
</div>
<a name="function.rewinddir.parameters"></a><div class="refsect1 parameters">
<h3 class="title">Parameters</h3>
<p class="para">
</p><dl>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">dir_handle</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
The directory handle <a href="language.types.resource.php" class="type resource">resource</a> previously opened
with <a href="function.opendir.php" class="function">opendir()</a>. If the directory handle is
not specified, the last link opened by <a href="function.opendir.php" class="function">opendir()</a>
is assumed.
</p>
</dd>
</dl>
<p>
</p>
</div>
</div><?php manual_footer(); ?>