Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Bzip2 Compression Functions : bzcompress

bzcompress

Compress a string into bzip2 encoded data (PHP 4 >= 4.3.3, PHP 5, PECL bz2:1.0)
mixed bzcompress ( string source [, int blocksize [, int workfactor]] )

Example 358. Compressing data

<?php
$str
= "sample data";
$bzstr = bzcompress($str, 9);
echo
$bzstr;
?>

Change Language


Follow Navioo On Twitter
bzclose
bzcompress
bzdecompress
bzerrno
bzerror
bzerrstr
bzflush
bzopen
bzread
bzwrite
eXTReMe Tracker