PHP Conference Japan 2024

mb_get_info

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

mb_get_info取得 mbstring 的內部設定

說明

mb_get_info(字串 $type = "all"): 陣列|字串|整數|false|null

mb_get_info() 會回傳 mbstring 的內部設定參數。

參數

type

如果沒有指定 type 或指定為 "all",則會回傳 "internal_encoding""http_input""http_output""http_output_conv_mimetypes""mail_charset""mail_header_encoding""mail_body_encoding""illegal_chars""encoding_translation""language""detect_order""substitute_character""strict_detection"

如果 type 指定為 "internal_encoding""http_input""http_output""http_output_conv_mimetypes""mail_charset""mail_header_encoding""mail_body_encoding""illegal_chars""encoding_translation""language""detect_order""substitute_character""strict_detection",則會回傳指定的設定參數。

回傳值

如果未指定 type,則會回傳一個包含類型資訊的 陣列;否則會回傳特定 type 的值,若失敗則回傳 false

更新日誌

版本 說明
8.0.0 不再支援 type "func_overload""func_overload_list"

參見

新增註記

使用者貢獻的註記

此頁面沒有使用者貢獻的註記。
To Top