PHP中压缩与解压缩

admin 发表于 [PHP] 分类,标签: PHP代码
0
$compressed=gzencode('Compress me', 9); 	$uncompress=gzdecode($compressed);
$compressed=gzcompress('Compress me', 9);  	$uncompress=gzuncompress($compressed);
$compressed=gzdeflate('Compress me', 9); 	$uncompress=gzinflate($compressed);
$compressed=bzcompress('Compress me', 9);	$uncompress=bzdecompress($compressed);

发表我的评论