gzencode

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
gzencode - Create a gzip compressed string
Manual
Code Examples

Example #1 Creating a gzip file

The resulting data contains the appropriate headers and data structure to make a standard .gz file, e.g.:

PHP Version:


Function gzencode:

Zlib Compression Functions

Most used PHP functions