函数:gzread()


gzread

压缩文件读出指定长度字符串。

语法: string gzread(int zp, int length);

返回值: 字符串

函数种类: 特殊文件格式

内容说明

本函数用来读取指定长度的字符串。参数 gz 为开文件的代码。参数 length 为指定长度。

使用范例

<?php
$filename 
"/temp/sosofile.txt.gz";
$zd gzopen($filename"r");
$contents gzread($zd10000);
gzclose($zd);
?>



[ 上一页 PHP 手册 下一页 ]

PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序