php8.5
Home/ Manual/ zlib / functions/ zlib_decode

zlib_decode

PHP function Edit on GitHub ✎

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

Uncompress any raw/gzip/zlib encoded data

Description

zlib_decode(string $data, int $max_length = 0): string|false

Uncompress any raw/gzip/zlib encoded data.

Func

Parameters

data
max_length

Return Values

Returns the uncompressed data, Falseforfailure.

See Also

Source: reference/zlib/functions/zlib-decode.xml · from the official PHP manual (php/doc-en)