Home:ALL Converter>Inflate data encoded with ZLIB_ENCODING_DEFLATE in php

Inflate data encoded with ZLIB_ENCODING_DEFLATE in php

Ask Time:2020-02-27T22:02:52         Author:Thomas Decaux

Json Formatter

Saying a compressed string:

$compressed   = gzdeflate('Compress me', 9, ZLIB_ENCODING_DEFLATE);

How uncompress it?

$uncompressed = gzinflate($compressed);

Warning: gzinflate(): data error in php shell code on line 1

Author:Thomas Decaux,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/60435008/inflate-data-encoded-with-zlib-encoding-deflate-in-php
yy