<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.filesystem.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.rewind.php',
    1 => 'rewind',
    2 => 'Riavvolge la posizione di un puntatore a file',
  ),
  'up' => 
  array (
    0 => 'ref.filesystem.php',
    1 => 'Filesystem Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.rename.php',
    1 => 'rename',
  ),
  'next' => 
  array (
    0 => 'function.rmdir.php',
    1 => 'rmdir',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/filesystem/functions/rewind.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.rewind" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">rewind</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">rewind</span> &mdash; <span class="dc-title">Riavvolge la posizione di un puntatore a file</span></p>

   </div>
   <div class="refsect1 unknown-661" id="refsect1-function.rewind-unknown-661">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>rewind</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$handle</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

    <p class="para rdfs-comment">    
     Pone l&#039;indicatore alla posizione del file per <code class="parameter">handle</code> all&#039;inizio 
     del flusso del file.
    </p> 
    <p class="para">
     Restituisce <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> in caso di successo, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento.
    </p>
    <p class="para">
     Il puntatore al file deve essere valido e deve puntare ad un file 
     aperto con successo da <span class="function"><a href="function.fopen.php" class="function">fopen()</a></span>.
    </p>
    <blockquote class="note"><p><strong class="note">Nota</strong>: 
     <p class="para">
      If you have opened the file in append (&quot;a&quot;) mode, any data you write
      to the file will always be appended, regardless of the file position.
     </p>
    </p></blockquote>
    <p class="para">
     Vedere anche <span class="function"><a href="function.fseek.php" class="function">fseek()</a></span> e
     <span class="function"><a href="function.ftell.php" class="function">ftell()</a></span>.
    </p>
   </div>

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