PHP 函数:gztell()

gztell

取得压缩文件指针处。

语法: int gztell(int zp);

返回值: 整数

函数种类: 特殊文件格式

内容说明
本函数用来取得压缩文件的文件操作指针在某位处。参数 zp 为开文件代码。

使用范例

<?php $exfile=gzopen("/tmp/haha.gz", "r"); $aline=gzgets($exfile, 80); print("现在文件指针在第".gztell($exfile)."个位"); gzclose($exfile); ?>