<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.mb-parse-str.php',
    1 => 'mb_parse_str',
    2 => 'GET/POST/COOKIE データをパースし、グローバル変数を設定する',
  ),
  'up' => 
  array (
    0 => 'ref.mbstring.php',
    1 => 'マルチバイト文字列 関数',
  ),
  'prev' => 
  array (
    0 => 'function.mb-output-handler.php',
    1 => 'mb_output_handler',
  ),
  'next' => 
  array (
    0 => 'function.mb-preferred-mime-name.php',
    1 => 'mb_preferred_mime_name',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/mbstring/functions/mb-parse-str.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mb-parse-str" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mb_parse_str</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.6, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mb_parse_str</span> &mdash; <span class="dc-title">GET/POST/COOKIE データをパースし、グローバル変数を設定する</span></p>

 </div>
   
 <div class="refsect1 description" id="refsect1-function.mb-parse-str-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mb_parse_str</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$string</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$result</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   GET/POST/COOKIE データをパースし、
   グローバル変数を設定します。PHPは、生の POST/COOKIE を提供しないため、
   現状では GET データでのみ使用可能です。この関数は、URL
   エンコードされたデータをパース、エンコーディングを検出、
   内部エンコーディングへ変換し、配列<code class="parameter">result</code>
   またはグローバル配列に設定します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mb-parse-str-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">string</code></dt>
     <dd>
      <p class="para">
       URL エンコードされたデータ。
      </p>
     </dd>
    
    
     <dt><code class="parameter">result</code></dt>
     <dd>
      <p class="para">
       デコードされ、文字エンコーディング変換された文字列が含まれます。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.mb-parse-str-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>

 
 <div class="refsect1 changelog" id="refsect1-function.mb-parse-str-changelog">
  <h3 class="title">変更履歴</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>バージョン</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>第二引数はオプションではなくなりました。</td>
     </tr>

     <tr>
      <td>7.2.0</td>
      <td>第二引数なしで <span class="function"><strong>mb_parse_str()</strong></span> を呼び出すことは推奨されなくなりました。</td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.mb-parse-str-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.mb-detect-order.php" class="function" rel="rdfs-seeAlso">mb_detect_order()</a> - 文字エンコーディング検出順序を設定あるいは取得する</span></li>
    <li><span class="function"><a href="function.mb-internal-encoding.php" class="function" rel="rdfs-seeAlso">mb_internal_encoding()</a> - 内部文字エンコーディングを設定あるいは取得する</span></li>
   </ul>
  </p>
 </div>


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