mb_get_info

FunctionReturn type changed in PHP 8.2

Get internal settings of mbstring.

PHP 5
PHP 7
PHP 8.0
Improved
PHP 8.1
PHP 8.2
Improved
PHP 8.3
PHP 8.4
PHP 8.5
PHP 8.6

mb_get_info Function synopsis

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

Parameters

$type

OptionalTypestringDefault value"all"

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.

$type accepts one of the following string values:

  • all
  • http_output
  • http_input
  • internal_encoding
  • func_overload

Return value

Typearray|string|int|false|null

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

Changes to the mb_get_info Function

PHP 8.2

  • Return type changed: array|string|int|false to array|string|int|false|null
- mb_get_info(string $type = "all"): array|string|int|false
+ mb_get_info(string $type = "all"): array|string|int|false|null

PHP 8.0

  • Return type added: array|string|int|false
  • Parameter type added for parameter #1 ($type): string
  • Parameter default value added for position #1 ($type): "all"
- mb_get_info($type)
+ mb_get_info(string $type = "all"): array|string|int|false

mb_get_info Function Availability

PHP VersionAvailability
PHP 8.6Upcoming Release Yes
PHP 8.5Supported (Latest) Yes
PHP 8.4Supported Yes
PHP 8.3Security-Fixes Only Yes
PHP 8.2Security-Fixes Only Yes
PHP 8.1Unsupported Yes
PHP 8.0Unsupported Yes
PHP 7.4Unsupported Yes
PHP 7.3Unsupported Yes
PHP 7.2Unsupported Yes
PHP 7.1Unsupported Yes
PHP 7.0Unsupported Yes
PHP 5.6Unsupported Yes
PHP 5.5Unsupported Yes
PHP 5.4Unsupported Yes
PHP 5.3Unsupported Yes