fonction rewind () de PHP
Définition et utilisation
rewind () fonction rembobine le pointeur de fichier emplacement début du fichier.
En cas de succès, la fonction retourne TRUE. Si elle échoue, elle retourne FALSE.
grammaire
rewind(file)
参数 | 描述 |
---|---|
file | 必需。规定已打开的文件。 |
Exemples
<?php
$file = fopen("test.txt","r");
//Change position of file pointer
fseek($file,"15");
//Set file pointer to 0
rewind($file);
fclose($file);
?>
$file = fopen("test.txt","r");
//Change position of file pointer
fseek($file,"15");
//Set file pointer to 0
rewind($file);
fclose($file);
?>
Remplissez Manuel PHP Référence Filesystem