Web Analytics

PHP zlib_encode() Function

Compression FunctionPHP 5.4+

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