mb_get_info()
(PHP 4 >= 4.2.0, PHP 5, PHP 7)
获取 mbstring 的内部设置
说明
mb_get_info([string $type= "all"]): mixed
mb_get_info()返回 mbstring 参数的内部设定。
参数
- $type
如果没有设定$type,或者将其设定为"all",将会返回一个array,并且包含了以下所有元素:"internal_encoding","http_output","http_input","func_overload","mail_charset","mail_header_encoding","mail_body_encoding"。
如果$type设定为类似"http_output","http_input","internal_encoding","func_overload",将返回该参数的设置。
返回值
如果没有指定$type将返回类型信息的数组,否则将返回指定$type的信息。
更新日志
版本 | 说明 |
---|---|
5.1.3 | 实体"mail_charset"、"mail_header_encoding"和"mail_body_encoding"开始有效。 |
5.3.0 | 条目"http_output_conv_mimetypes"开始有效。 |
参见
mb_regex_encoding()
Set/Get character encoding for multibyte regexmb_http_output()
设置/获取 HTTP 输出字符编码