PHP - Manual: mb_get_info
2025-10-24
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
mb_get_info — 获取 mbstring 的内部设置
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" 不再被支持。
|