gzcompress

(PHP4 >= 4.0.1)

gzcompress -- Gz-compress a string

Description

string gzcompress (string data [, int level])

This function returns a gzip-compressed version of the input data or false on errors. The optional parameter level can be given as 0 for no compression up to 9 for maximum compression.

See also gzuncompress().