<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.dir.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'class.directory.php',
    1 => 'Directory',
    2 => 'The Directory class',
  ),
  'up' => 
  array (
    0 => 'book.dir.php',
    1 => 'Директорії',
  ),
  'prev' => 
  array (
    0 => 'dir.constants.php',
    1 => 'Попередньо визначені константи',
  ),
  'next' => 
  array (
    0 => 'directory.close.php',
    1 => 'Directory::close',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/dir/directory.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.directory.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.directory" class="reference">

 <h1 class="title">The Directory class</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p>


  <div class="section" id="directory.intro">
   <h2 class="title">Вступ</h2>
   <p class="para">
    Instances of <span class="classname"><strong class="classname">Directory</strong></span> are created by calling the
    <span class="function"><a href="function.dir.php" class="function">dir()</a></span> function, not by the <a href="language.oop5.basic.php#language.oop5.basic.new" class="link">new</a> operator.
   </p>
  </div>


  <div class="section" id="directory.synopsis">
   <h2 class="title">Короткий огляд класу</h2>


   <div class="classsynopsis"><div class="classsynopsisinfo">
    
     <span class="modifier">class</span> <strong class="classname"><strong class="classname">Directory</strong></strong>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Властивості */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
     <span class="modifier">readonly</span>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
      <var class="varname"><a href="class.directory.php#directory.props.path">$<var class="varname">path</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">readonly</span>
     <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>
      <var class="varname"><a href="class.directory.php#directory.props.handle">$<var class="varname">handle</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Методи */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="directory.close.php" class="methodname">close</a></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="directory.read.php" class="methodname">read</a></span>(): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="directory.rewind.php" class="methodname">rewind</a></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

   }</div>


  </div>


  <div class="section" id="directory.props">
   <h2 class="title">Властивості</h2>
   <dl>
    
     <dt id="directory.props.path"><var class="varname">path</var></dt>
     <dd>
      <p class="para">
       The directory that was opened.
      </p>
     </dd>
    
    
     <dt id="directory.props.handle"><var class="varname">handle</var></dt>
     <dd>
      <p class="para">
       Can be used with other directory functions such as
       <span class="function"><a href="function.readdir.php" class="function">readdir()</a></span>, <span class="function"><a href="function.rewinddir.php" class="function">rewinddir()</a></span> and
       <span class="function"><a href="function.closedir.php" class="function">closedir()</a></span>.
      </p>
     </dd>
    
   </dl>
  </div>

  <div class="section">
   <h2 class="title">Журнал змін</h2>
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Версія</th>
       <th>Опис</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.1.0</td>
       <td>
        The <var class="varname">path</var> and <var class="varname">handle</var> properties are now readonly.
       </td>
      </tr>

     </tbody>
    
   </table>

  </div>


 </div>

 















<h2>Зміст</h2><ul class="chunklist chunklist_reference"><li><a href="directory.close.php">Directory::close</a> — Close directory handle</li><li><a href="directory.read.php">Directory::read</a> — Read entry from directory handle</li><li><a href="directory.rewind.php">Directory::rewind</a> — Rewind directory handle</li></ul>
</div>
<?php manual_footer($setup); ?>