mb_get_info
mbstring の内部設定値を取得する
説明
arraystringintfalsenull mb_get_info(string $type = "all")
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 を返します
参考
- mb_regex_encoding
- mb_http_output