GZINFLATE(3) 1 GZINFLATE(3)
gzinflate - Inflate a deflated string
SYNOPSIS
string gzinflate (string $data, [int $length])
DESCRIPTION
This function inflates a deflated string.
PARAMETERS
o $data
- The data compressed by gzdeflate(3).
o $length
- The maximum length of data to decode.
RETURN VALUES
The original uncompressed data or FALSE on error.
The function will return an error if the uncompressed data is more than 32768 times the length of the compressed input $data or more than
the optional parameter $length.
EXAMPLES
Example #1
gzinflate(3) example
<?php
$compressed = gzdeflate('Compress me', 9);
$uncompressed = gzinflate($compressed);
echo $uncompressed;
?>
SEE ALSO
gzdeflate(3), gzcompress(3), gzuncompress(3), gzencode(3).
PHP Documentation Group GZINFLATE(3)