PHP rewind() 函数

定义和用法

rewind() 函数将文件指针的位置倒回文件的开头。

若成功,则返回 true。若失败,则返回 false。

语法

rewind(file)
参数 描述
file 必需。规定已打开的文件。

实例