Home >Backend Development >PHP Tutorial >How to compress a piece of text and store it in mysql_PHP tutorial

How to compress a piece of text and store it in mysql_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:12:041114browse

First load the module extension=php_zlib.dll
PHP code:------------------------------------ --------------------------------------------------
$x="hello world";
$x=gzcompress($x) ; //Compression
echo $x ;
echo "
";
echo gzuncompress ($x); //Unzip
?>
--------------------------------- --------------------------------------------------

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629493.htmlTechArticleFirst load the module extension=php_zlib.dll PHP code:------------- -------------------------------------------------- ------------------ ?php $x=hello world; $x=gzcompress($x) ; //Compress ec...
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