ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# Zlib 内置 手动启用 该模块使您能够通过大多数[文件系统](https://www.php.net/manual/en/book.filesystem.php)功能的版本透明地读写gzip(.gz)压缩文件,这些[文件系统](https://www.php.net/manual/en/book.filesystem.php)功能适用于gzip压缩文件(也包括未压缩文件,但不适用于套接字)。 - [预定义常量](https://www.php.net/manual/en/zlib.constants.php) - [例子](https://www.php.net/manual/en/zlib.examples.php) - [Zlib函数](https://www.php.net/manual/en/ref.zlib.php) - [deflate\_add](https://www.php.net/manual/en/function.deflate-add.php)—增量压缩数据 - [deflate\_init](https://www.php.net/manual/en/function.deflate-init.php)—初始化增量deflate上下文 - [gzclose](https://www.php.net/manual/en/function.gzclose.php)—关闭打开的gz文件指针 - [gzcompress](https://www.php.net/manual/en/function.gzcompress.php)—压缩字符串 - [gzdecode](https://www.php.net/manual/en/function.gzdecode.php)—解码gzip压缩字符串 - [gzdeflate](https://www.php.net/manual/en/function.gzdeflate.php)—[压缩](https://www.php.net/manual/en/function.gzdeflate.php)字符串 - [gzencode](https://www.php.net/manual/en/function.gzencode.php)—创建一个gzip压缩字符串 - [gzeof](https://www.php.net/manual/en/function.gzeof.php)—在gz文件指针上测试EOF - [gzfile](https://www.php.net/manual/en/function.gzfile.php)—将整个gz文件读入数组 - [gzgetc](https://www.php.net/manual/en/function.gzgetc.php)—从gz文件指针获取字符 - [gzgets](https://www.php.net/manual/en/function.gzgets.php)—从文件指针获取行 - [gzgetss](https://www.php.net/manual/en/function.gzgetss.php)—从gz文件指针获取行并剥离HTML标签 - [gzinflate](https://www.php.net/manual/en/function.gzinflate.php)—给放气的字符串[充气](https://www.php.net/manual/en/function.gzinflate.php) - [gzopen](https://www.php.net/manual/en/function.gzopen.php)—打开gz文件 - [gzpassthru](https://www.php.net/manual/en/function.gzpassthru.php)—在gz文件指针上输出所有剩余数据 - [gzputs](https://www.php.net/manual/en/function.gzputs.php)— gzwrite的别名 - [gzread](https://www.php.net/manual/en/function.gzread.php)—读取二进制安全的gz文件 - [gzrewind](https://www.php.net/manual/en/function.gzrewind.php)—倒回gz文件指针的位置 - [gzseek](https://www.php.net/manual/en/function.gzseek.php)—搜寻gz文件指针 - [gztell](https://www.php.net/manual/en/function.gztell.php)—告诉gz文件指针读/写位置 - [gzuncompress](https://www.php.net/manual/en/function.gzuncompress.php)—解压缩压缩的字符串 - [gzwrite-](https://www.php.net/manual/en/function.gzwrite.php)二进制安全的gz文件写入 - [inflate\_add](https://www.php.net/manual/en/function.inflate-add.php)—增量[填充](https://www.php.net/manual/en/function.inflate-add.php)编码数据 - [inflate\_get\_read\_len](https://www.php.net/manual/en/function.inflate-get-read-len.php)—获取到目前为止已读取的字节数 - [inflate\_get\_status](https://www.php.net/manual/en/function.inflate-get-status.php)—获取减压状态 - [inflate\_init](https://www.php.net/manual/en/function.inflate-init.php)—初始化增量膨胀上下文 - [readgzfile](https://www.php.net/manual/en/function.readgzfile.php)—输出gz文件 - [zlib\_decode](https://www.php.net/manual/en/function.zlib-decode.php)—解压缩任何原始/ gzip / zlib编码的数据 - [zlib\_encode](https://www.php.net/manual/en/function.zlib-encode.php)—使用指定的编码压缩数据 - [zlib\_get\_coding\_type](https://www.php.net/manual/en/function.zlib-get-coding-type.php)—返回用于输出压缩的编码类型