zlib_decode

Supported Versions: PHP 5 >= 5.4.0, PHP 7, PHP 8
Uncompress any raw/gzip/zlib encoded data
zlib_decode(string $dataint $max_length 0): string|false
            $decode $contentEncoding && 'gzip' === strtolower($contentEncoding);



            if (
$decode) {

                
$result zlib_decode($result);



                if (
$result === false) {

                    throw new 
TransportException('Failed to decode zlib stream');