bzdecompress
Description
The bzdecompress of bzip2 for PHP decompresses bzip2 encoded data.
Syntax
bzdecompress(
string $data,
bool $use_less_memory = false
): string|int|falseParameters
data
The string to decompress.
use_less_memory
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.
Return
Returns the decompressed string on success, or false or an error number if an error occurred.
Examples
1 · data
<? $bzcompressdata = "data"; $data = bzcompress($bzcompressdata); echo $data . PHP_EOL; $return = bzdecompress($data); echo $return;
BZh41AY&SY��r �$ 0�z�qw$S� �i� data