CakeFest 2024: The Official CakePHP Conference

mb_get_info

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

mb_get_infoПолучает внутренние настройки модуля mbstring

Описание

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

Функция mb_get_info() возвращает внутренние параметры настроек модуля mbstring.

Список параметров

type

Если параметр type не задан или задан как "all", будет возвращён массив (array), содержащий элементы "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", будет возвращена настройка указанного параметра.

Возвращаемые значения

Возвращает массив (array) информации о параметрах, если параметр type не определён, иначе значение заданного параметра type или false, если возникла ошибка.

Список изменений

Версия Описание
8.0.0 Параметр type больше не поддерживает значения "func_overload" и "func_overload_list".

Смотрите также

  • mb_regex_encoding() - Устанавливает/получает кодировку символов для многобайтового регулярного выражения
  • mb_http_output() - Устанавливает/получает кодировку символов вывода HTTP

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top