Summery Summery
Compress raw string using the deflate format.
Syntax Syntax
Description Description
Supports the RFC 1951 standard.
Parameters Parameters
- $raw
-
(Required) String to compress.
- $level
-
(Optional) Compression level, 9 is highest.
Default value: 9
- $supports
-
(Optional) not used. When implemented it will choose the right compression based on what the server supports.
Default value: null
Return Return
(string|false) False on failure.
Source Source
File: wp-includes/class-wp-http-encoding.php
*/ public static function compress( $raw, $level = 9, $supports = null ) { return gzdeflate( $raw, $level );
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |