rewind
Rewind the file pointer position
The rewind()
function rewinds the position of the file pointer back to the beginning of the file.
If successful, return true. If it fails, return false.
<?php $file = fopen ( "test.txt" , "r" ) ; //Change the file pointer position fseek ( $file , "15" ) ; //Set the file pointer to 0 rewind ( $file ) ; fclose ( $file ) ; ?>
rewind ( file )
parameter | describe |
---|---|
file | Required. Specifies the opened files. |