UK[?ri:?wa?nd] US[ri?wa?nd]
v. Rewind; rewind (video, audio tape, etc.)
n. Rewind; rewinder
Third person singular: rewinds Plural: rewinds Present participle: rewinding Past tense: rewound Past participle: rewound
php rewind() function syntax
Function: Rewind the position of the file pointer to the beginning of the file.
Syntax: rewind(file)
Parameters:
Parameter | Description |
file | Required. Specifies an open file. |
Description: If successful, return true. On failure, returns false.
php rewind() function example
<?php $file = fopen("./test.txt","r"); //改變文件指針的位置 fseek($file,"13"); //把文件指針設(shè)定為 0 rewind($file); //輸出指針位置 echo ftell($file); ?>