bzcompress

bzcompress

(PHP 4 >= 4.0.4, PHP 5, PHP 7)

bzcompressCompress a string into bzip2 encoded data

Description

mixed bzcompress ( string $source [, int $blocksize = 4 [, int $workfactor = 0 ]] )

bzcompress() compresses the given string and returns it as bzip2 encoded data.

Parameters

source

The string to compress.

blocksize