= 4.0.6, PHP 5, PHP 7, PHP 8)mb_http_output — 設置/獲取 HTTP 輸出字符編碼說明mb_http_output(string $encoding = mb_http_output()): mixed設置/獲取">

mb_http_output

(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)

mb_http_output設置/獲取 HTTP 輸出字符編碼

說明

mb_http_output(string $encoding = mb_http_output()): mixed

設置/獲取 HTTP 輸出字符編碼。此函數(shù)被調用之后輸出的內容會被轉換成 encoding。

參數(shù)

encoding

如果設置了 encoding,mb_http_output() 設置 HTTP 輸出字符編碼為 encoding

如果省略了 encoding,mb_http_output() 返回當前的 HTTP 輸出字符編碼。

返回值

如果省略了 encoding,mb_http_output() 返回當前的 HTTP 輸出字符編碼。 否則成功時返回 true, 或者在失敗時返回 false。

參見