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");
//把文件指针设定为 0
rewind($file);
//输出指针位置
echo ftell($file);
?>