Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

mb_get_info

Description

The mb_get_info of Multibyte String for PHP get internal settings of mbstring.

Syntax

mb_get_info(
    string $type = "all"
): array|string|int|false

Parameters

type

If type is not specified or is specified as "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" and "strict_detection" will be returned.

If type is specified as "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" or "strict_detection" the specified setting parameter will be returned.

Return

An array of type information if type is not specified, otherwise a specific type, or false on failure.

Examples

1 · void

<?

$return = mb_get_info();

var_export($return);

?>
array (
  'internal_encoding' => 'UTF-8',
  'http_output' => 'UTF-8',
  'http_output_conv_mimetypes' => '^(text/|application/xhtml\\+xml)',
  'mail_charset' => 'UTF-8',
  'mail_header_encoding' => 'BASE64',
  'mail_body_encoding' => 'BASE64',
  'illegal_chars' => 0,
  'encoding_translation' => 'Off',
  'language' => 'neutral',
  'detect_order' => 
  array (
    0 => 'ASCII',
    1 => 'UTF-8',
  ),
  'substitute_character' => 63,
  'strict_detection' => 'Off',
)

2 · type

<?

$type = "internal_encoding";

$return = mb_get_info($type);

var_export($return);

?>
'UTF-8'
HomeMenu