<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.dio.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.dio-read.php',
    1 => 'dio_read',
    2 => 'Reads bytes from a file descriptor',
  ),
  'up' => 
  array (
    0 => 'ref.dio.php',
    1 => 'Функції Direct IO',
  ),
  'prev' => 
  array (
    0 => 'function.dio-open.php',
    1 => 'dio_open',
  ),
  'next' => 
  array (
    0 => 'function.dio-seek.php',
    1 => 'dio_seek',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/dio/functions/dio-read.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.dio-read" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">dio_read</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5 &lt; 5.1.0)</p><p class="refpurpose"><span class="refname">dio_read</span> &mdash; <span class="dc-title">Reads bytes from a file descriptor</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.dio-read-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>dio_read</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$fd</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$len</code><span class="initializer"> = 1024</span></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   The function <span class="function"><strong>dio_read()</strong></span> reads and returns
   <code class="parameter">len</code> bytes from file with descriptor
   <code class="parameter">fd</code>. 
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.dio-read-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">fd</code></dt>
     <dd>
      <p class="para">
       The file descriptor returned by <span class="function"><a href="function.dio-open.php" class="function">dio_open()</a></span>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">len</code></dt>
     <dd>
      <p class="para">
       The number of bytes to read. If not specified,
       <span class="function"><strong>dio_read()</strong></span> reads 1K sized block.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.dio-read-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   The bytes read from <code class="parameter">fd</code>.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.dio-read-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.dio-write.php" class="function" rel="rdfs-seeAlso">dio_write()</a> - Writes data to fd with optional truncation at length</span></li>
   </ul>
  </p>
 </div>

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