Compress raw string using the deflate format.
Description
Supports the RFC 1951 standard.
Parameters
$rawstringrequired- String to compress.
$levelintoptional- Compression level, 9 is highest.
Default:
9 $supportsstringoptional- Not used. When implemented it will choose the right compression based on what the server supports.
Default:
null
Source
public static function compress( $raw, $level = 9, $supports = null ) {
return gzdeflate( $raw, $level );
}
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.