压缩档读出指定长度字串。
语法: string gzread(int zp, int length);
传回值: 字串
函式种类: 特殊档案格式
本函式用来读取指定长度的字串。参数 gz 为开档的代码。参数 length 为指定长度。
<?php$filename = "/temp/sosofile.txt.gz";$zd = gzopen($filename, "r");$contents = gzread($zd, 10000);gzclose($zd);?>