Google

NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7">

bzdecompress

(PHP 4 >= 4.0.4)

bzdecompress -- bzip2形式のデータを解凍する

説明

string bzdecompress ( string source [, int small])

bzdecompress() は、bzip2形式のデータの文字列 source を解凍し、返します。オプションのパ ラメータsmallTRUEの場合、よりメモリの消 費量が少ない(所要メモリは最大2300K程度まで少なくなります)別の圧縮 アルゴリズムが使用されますが、速度は約半分になってしまいます。 この機能に関する詳細については、bzip2 ドキュメント を参照下さい。

例 1bzdecompress()

$start_str = "This is not an honest face?";
$bzstr = bzcompress($start_str);

print "Compressed String: ";
print $bzstr;
print "\n<br>\n";

$str = bzdecompress($bzstr);
print "Decompressed String: ";
print $str;
print "\n<br>\n";

bzcompress()も参照下さい。