zlib_encode
(PHP 5 >= 5.4.0)
zlib_encode — Compress data with the specified encoding
Description
string zlib_encode
( string
$data
, string $encoding
[, string $level
= -1
] )Compress data with the specified encoding.
Warning
This function is currently not documented; only its argument list is available.
Parameters
-
data
-
-
encoding
-
-
level
-
Return Values
See Also
- zlib_decode() - Uncompress any raw/gzip/zlib encoded data
Коментарии
zlib_encode, gzcompress, gzdeflate and gzencode are the same functions besides the parameter order.
zlib_encode + ZLIB_ENCODING_RAW = gzdeflate
zlib_encode + ZLIB_ENCODING_DEFLATE = gzcompress
zlib_encode + ZLIB_ENCODING_GZIP = gzencode