array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.mb-http-input.php', 1 => 'mb_http_input', ), 'up' => array ( 0 => 'ref.mbstring.php', 1 => 'マルチバイト文字列 関数', ), 'prev' => array ( 0 => 'function.mb-get-info.php', 1 => 'mb_get_info', ), 'next' => array ( 0 => 'function.mb-http-output.php', 1 => 'mb_http_output', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/mbstring/functions/mb-http-input.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)
mb_http_input — HTTP 入力文字エンコーディングを検出する
type
HTTP 入力の型を表す文字列を入力してください。
GET の場合は "G"
、POST の場合は "P"
、
COOKIE の場合は "C"
、文字列の場合は "S"
、
リストの場合は "L"
、リスト全体(配列を返す)
の場合は "I"
です。 type
が省略された場合、
直近に処理された入力型が返されます。
type
の文字エンコーディング名を返します。
type
が "I"
の場合は、
文字エンコーディング名の配列を返します。
mb_http_input()
が指定した HTTP 入力の処理を行っていない場合、false
を返します。
バージョン | 説明 |
---|---|
8.0.0 |
type は、nullable になりました。
|