Decodes a gzip compressed string

gzdecode

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

gzdecodeDecodes a gzip compressed string

說明

gzdecode(string $data, int $max_length = 0): string|false

This function returns a decoded version of the input data.

參數

data

The data to decode, encoded by gzencode().

max_length

The maximum length of data to decode.

返回值

The decoded string, or 或者在失敗時返回 false.

錯誤/異常

In case of failure, an E_WARNING level error is issued.

參見

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *