|
PHP5中文手册
gzcompress(PHP 4 >= 4.0.1, PHP 5) gzcompress — Compress a string 说明
string gzcompress
( string $data
[, int $level
] )
This function compress the given string using the ZLIB data format. For details on the ZLIB compression algorithm see the document "» ZLIB Compressed Data Format Specification version 3.3" (RFC 1950).
参数
返回值The compressed string or FALSE if an error occurred. 范例
Example#1 gzcompress() example
<?php |