GC_Http_Encoding::compress()

最后更新于:2021-12-01 11:12:53

GC_( string$raw, int$level=9, string$supports=null)

Compress raw string using the deflate format.

参数

$raw

(string) (Required) String to compress.

$level

(int) (Optional) Compression level, 9 is highest.

Default value: 9

$supports

(string) (Optional) not used. When implemented it will choose the right compression based on what the server supports.

Default value: null

响应

(string|false) Compressed string on success, false on failure.

源文件

文件: gc-includes/class-gc-http-encoding.php

	public static function compress( $raw, $level = 9, $supports = null ) {
		return gzdeflate( $raw, $level );
	}