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