跳转到主要内容

mb-http-input

mb_http_input

Detect HTTP input character encoding

ENTITY

array

string

false

mb_http_input

string

null

type

ENTITY

Detects the HTTP input character encoding.

ENTITY

type
Input string specifies the input type. "G" for GET, "P" for POST, "C" for COOKIE, "S" for string, "L" for list, and "I" for the whole list (will return array). If type is omitted, it returns the last input type processed.

ENTITY

The character encoding name, as per the type, or an array of character encoding names, if type is "I". If mb_http_input does not process specified HTTP input, it returns ENTITY.

ENTITY

Throws a ValueError if type is invalid.

ENTITY

ENTITY ENTITY
8.0.0 mb_http_input now throws a ValueError if type is invalid. type is nullable now.

ENTITY

mb_internal_encoding, mb_http_output, mb_detect_order