GZUNCOMPRESS(3) 1 GZUNCOMPRESS(3)
gzuncompress - Uncompress a compressed string
SYNOPSIS
string gzuncompress (string $data, [int $length])
DESCRIPTION
This function uncompress a compressed string.
PARAMETERS
o $data
- The data compressed by gzcompress(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
gzuncompress(3) example
<?php
$compressed = gzcompress('Compress me', 9);
$uncompressed = gzuncompress($compressed);
echo $uncompressed;
?>
SEE ALSO
gzcompress(3), gzinflate(3), gzdeflate(3), gzencode(3).
PHP Documentation Group GZUNCOMPRESS(3)