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 输出字符编码
