LOADING STUFF...

PHP:ftell()的用法_Filesystem函数

技术教程4小时前更新 北陌
20 0 0

PHP:ftell()的用法_Filesystem函数

ftell

(PHP 4, PHP 5)

ftell — 返回文件指针读/写的位置

说明

int ftell
( resource $handle
)

返回由 handle 指定的文件指针的位置,也就是文件流中的偏移量。

参数

handle

文件指针必须是有效的,且必须指向一个通过 fopen()
或 popen() 成功打开的文件。在附加模式(加参数 “a” 打开文件)中 ftell()
会返回未定义错误。

返回值

Returns the position of the file pointer referenced by
handle as an integer; i.e., its offset into the file stream.

如果出错,返回 FALSE

范例

Example #1 ftell() 例子

//

© 版权声明

相关文章

暂无评论

暂无评论...