PHP rewind() Function Syntax
bool rewind(file_handle)
<?php
$file=fopen("roseindia.txt","r");
echo "<br>file
pointer position ".ftell($file);
fgets($file);
fgets($file);
echo "<br>file
pointer position ".ftell($file);
rewind($file);
echo "<br>after
rewind file pointer position ".ftell($file);
?>
Output
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.