Home > PHP > Function > Bzip2 > bzdecompress()

bzdecompress()

bzdecompress - Decompresses bzip2 encoded data

Syntax

mixed bzdecompress (string $source, int $small)

Arguments

  • source - The string to decompress.
  • small - If TRUE, an alternative decompression algorithm will be used which uses less memory (the maximum memory requirement drops to around 2300K) but works at roughly half the speed. See the » bzip2 documentationfor more information about this feature.

Description

bzdecompress() decompresses the given string containing bzip2 encoded data.

Version

PHP 4.0.4, 5

Return value

The decompressed string or number of error in case of error.