deflate_add() - zlib函数(压缩文件)
deflate_add()
版本:php7
(PHP 7)
Incrementally deflate data
说明
deflate_add(resource $context,string $data[,int $flush_mode= ZLIB_SYNC_FLUSH]): stringIncrementally deflates data in the specified context.
参数
$contextA context created with deflate_init().
$dataA chunk of data to compress.
$flush_mode One of ZLIB_BLOCK
,ZLIB_NO_FLUSH
,ZLIB_PARTIAL_FLUSH
,ZLIB_SYNC_FLUSH
(default),ZLIB_FULL_FLUSH
,ZLIB_FINISH
. Normally you will want to set ZLIB_NO_FLUSH
to maximize compression, and ZLIB_FINISH
to terminate with the last chunk of data. See the » zlib manual for a detailed description of these constants.
返回值
Returns a chunk of compressed data,或者在失败时返回FALSE
.
错误/异常
If invalid arguments are given, an error of level E_WARNING
is generated.
参见
deflate_init()
Initialize an incremental deflate context
Example about to use deflate functions to write a gzip encoded file in chunks.
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!