<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mbstring.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.mb-http-input.php',
    1 => 'mb_http_input',
    2 => 'Detect HTTP input character encoding',
  ),
  'up' => 
  array (
    0 => 'ref.mbstring.php',
    1 => 'Multibyte String Функції',
  ),
  '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' => 'en',
    'path' => 'reference/mbstring/functions/mb-http-input.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mb-http-input" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mb_http_input</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.6, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mb_http_input</span> &mdash; <span class="dc-title">Detect HTTP input character encoding</span></p>

 </div>
   
 <div class="refsect1 description" id="refsect1-function.mb-http-input-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mb_http_input</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$type</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">
   Detects the HTTP input character encoding.
  </p>
 </div>

 
 <div class="refsect1 parameters" id="refsect1-function.mb-http-input-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">type</code></dt>
     <dd>
      <p class="para">
       Input string specifies the input type. 
       <code class="literal">&quot;G&quot;</code> for GET, <code class="literal">&quot;P&quot;</code> for POST, <code class="literal">&quot;C&quot;</code> for COOKIE, <code class="literal">&quot;S&quot;</code> for string, <code class="literal">&quot;L&quot;</code> for list, and
       <code class="literal">&quot;I&quot;</code> for the whole list (will return <span class="type"><a href="language.types.array.php" class="type array">array</a></span>). 
       If type is omitted, it returns the last input type processed. 
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.mb-http-input-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   The character encoding name, as per the <code class="parameter">type</code>,
   or an array of character encoding names, if <code class="parameter">type</code> is <code class="literal">&quot;I&quot;</code>.
   If <span class="function"><strong>mb_http_input()</strong></span> does not process specified
   HTTP input, it returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.mb-http-input-errors">
  <h3 class="title">Помилки/виключення</h3>
  <p class="simpara">
   Throws a <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> if
   <code class="parameter">type</code> is invalid.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.mb-http-input-changelog">
  <h3 class="title">Журнал змін</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версія</th>
      <th>Опис</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.4.0</td>
      <td>
       <span class="function"><strong>mb_http_input()</strong></span> now throws a
       <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> if <code class="parameter">type</code>
       is invalid.
      </td>
     </tr>

     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">type</code> is nullable now.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.mb-http-input-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.mb-internal-encoding.php" class="function" rel="rdfs-seeAlso">mb_internal_encoding()</a> - Set/Get internal character encoding</span></li>
    <li><span class="function"><a href="function.mb-http-output.php" class="function" rel="rdfs-seeAlso">mb_http_output()</a> - Set/Get HTTP output character encoding</span></li>
    <li><span class="function"><a href="function.mb-detect-order.php" class="function" rel="rdfs-seeAlso">mb_detect_order()</a> - Set/Get character encoding detection order</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>