Home >php教程 >php手册 >如何压缩一段文本后存入mysql中

如何压缩一段文本后存入mysql中

WBOY
WBOYOriginal
2016-06-21 09:13:591212browse

mysql|压缩

先加载模块extension=php_zlib.dll

PHP代码:--------------------------------------------------------------------------------

$x="hello world";
$x=gzcompress($x) ; //压缩
echo $x ;
echo "
";
echo gzuncompress($x); //解压
?>

--------------------------------------------------------------------------------



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn