Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gzinflate(3) [php man page]

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)

Check Out this Related Man Page

GZCOMPRESS(3)								 1							     GZCOMPRESS(3)

gzcompress - Compress a string

SYNOPSIS
string gzcompress (string $data, [int $level = -1], [int $encoding = ZLIB_ENCODING_DEFLATE]) DESCRIPTION
This function compresses the given string using the ZLIB data format. For details on the ZLIB compression algorithm see the document "ZLIB Compressed Data Format Specification version 3.3" (RFC 1950). Note This is not the same as gzip compression, which includes some header data. See gzencode(3) for gzip compression. PARAMETERS
o $data - The data to compress. o $level - The level of compression. Can be given as 0 for no compression up to 9 for maximum compression. If -1 is used, the default com- pression of the zlib library is used which is 6. o $encoding - One of ZLIB_ENCODING_* constants. RETURN VALUES
The compressed string or FALSE if an error occurred. EXAMPLES
Example #1 gzcompress(3) example <?php $compressed = gzcompress('Compress me', 9); echo $compressed; ?> CHANGELOG
+--------+-----------------------------+ |Version | | | | | | | Description | | | | +--------+-----------------------------+ | 5.4.0 | | | | | | | Added $encoding parameter. | | | | +--------+-----------------------------+ SEE ALSO
gzdeflate(3), gzinflate(3), gzuncompress(3), gzencode(3). PHP Documentation Group GZCOMPRESS(3)
Man Page