Rewinds the position of the file pointer to the beginning of the file in PHP
Description
The following code shows how to rewinds the position of the file pointer to the beginning of the file.
Example
//from w w w . j ava 2 s . c o m
<?php
$file = fopen("test.txt","r");
//Change position of file pointer
fseek($file,"15");
//Set file pointer to 0
rewind($file);
fclose($file);
?>