gzinflate
Inflate a deflated string
Description
stringfalse gzinflate(string $data, int $max_length = 0)
Parameters
-
data
-
The data compressed by gzdeflate.
-
max_length
-
The maximum length of decoded data.
Return Values
The original uncompressed data or false on error.
Errors/Exceptions
Throws a ValueError if max_length
is negative. If data is not valid compressed data, or the
uncompressed data is too large for max_length when it is not
0, an E_WARNING is raised and false is returned.
Examples
Example #1 gzinflate example
<?php
$compressed = gzdeflate('Compress me', 9);
$uncompressed = gzinflate($compressed);
echo $uncompressed;
?>
See Also
- gzdeflate
- gzcompress
- gzuncompress
- gzencode