PHP zlib_encode() Function
The zlib_encode() function compresses data with the
specified encoding.
Syntax
zlib_encode(string $data, int $encoding, int $level = -1): string|false
Try It Online
Output
Click Run to execute your code
Related Functions
- zlib_decode() - Uncompress any raw/gzip/zlib encoded data
Enjoying these tutorials?