mb_get_info()

mb_get_info() — Get internal settings of mbstring.

Built-in function of PHP 8.5. The manual lists it as available in PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8. This page is the reference card: signature, parameters and return value, plus the changelog and the example the manual provides.

What it does

mb_get_info() returns the internal setting parameters of mbstring.

Signature

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

Parameters

ParameterTypeWhat it takes
$typestringIf 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.

Return value

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

Example

The PHP manual ships no example for mb_get_info(); the signature and the parameter table above are the contract.

Changelog

VersionChange
8.0.0The types "func_overload" and "func_overload_list" are no longer supported.

See also

mb_regex_encoding(), mb_http_output()

All PHP 8.5 built-in functions

Reference card built from the PHP manual page mb_get_info() (PHP documentation, CC BY 3.0). The page is generated from the manual, so the wording of the parameter and return value text follows php.net.