mb_get_info
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
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" 不再被支援。
|
參見
- mb_regex_encoding() - Set/Get character encoding for multibyte regex
- mb_http_output() - 設定/獲取 HTTP 輸出字元編碼