小白教程
所有教程
关于
Search
172.69.58.33
172.69.58.33
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func filesystem rewind”的源代码
本页内容
上一节:
Func_filesystem_rename
下一节:
Func_filesystem_rmdir
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:rewind()}}[[Category:PHP Filesystem 文件系统参考手册|66]] = PHP rewind() 函数 = [[Category:PHP Filesystem 文件系统参考手册]] == 定义和用法 == rewind() 函数将文件指针的位置倒回文件的开头。 如果成功,该函数返回 TRUE。如果失败,则返回 FALSE。 == 语法 == <pre> rewind(file) </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | file | 必需。规定已打开的文件。 |} <sample title="" desc="" lang="php" hererun="1"> <?php $file = fopen("test.txt","r"); //Change position of file pointer fseek($file,"15"); //Set file pointer to 0 rewind($file); fclose($file); ?> </sample> [[Category:PHP Filesystem 文件系统参考手册]]
返回至“
Func filesystem rewind
”。
上一节:
Func_filesystem_rename
下一节:
Func_filesystem_rmdir