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
Release: 2016-07-13 17:12:04
Original
1102 people have browsed it

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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template