<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.curl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.curl-multi-setopt.php',
    1 => 'curl_multi_setopt',
    2 => 'cURL マルチハンドル用のオプションを設定する',
  ),
  'up' => 
  array (
    0 => 'ref.curl.php',
    1 => 'cURL 関数',
  ),
  'prev' => 
  array (
    0 => 'function.curl-multi-select.php',
    1 => 'curl_multi_select',
  ),
  'next' => 
  array (
    0 => 'function.curl-multi-strerror.php',
    1 => 'curl_multi_strerror',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/curl/functions/curl-multi-setopt.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.curl-multi-setopt" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">curl_multi_setopt</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">curl_multi_setopt</span> &mdash; <span class="dc-title">cURL マルチハンドル用のオプションを設定する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.curl-multi-setopt-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>curl_multi_setopt</strong></span>(<span class="methodparam"><span class="type"><a href="class.curlmultihandle.php" class="type CurlMultiHandle">CurlMultiHandle</a></span> <code class="parameter">$multi_handle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$option</code></span>, <span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   指定された cURL マルチハンドル用のオプションを設定します。
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.curl-multi-setopt-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   <dt><code class="parameter">multi_handle</code>
</dt><dd><p class="para"><span class="function"><a href="function.curl-multi-init.php" class="function">curl_multi_init()</a></span>
が返す cURL マルチハンドル。</p></dd>
   
    <dt><code class="parameter">option</code></dt>
    <dd>
     <p class="para">
      <strong><code><a href="curl.constants.php#constant.curlmopt-chunk-length-penalty-size">CURLMOPT_<span class="replaceable">*</span></a></code></strong> 定数のいずれか。
     </p>
    </dd>
   
   
    <dt><code class="parameter">value</code></dt>
    <dd>
      <p class="para">
       <code class="parameter">option</code> に設定する値。
       それぞれの定数が期待する値の型に関する詳細は、
       <strong><code><a href="curl.constants.php#constant.curlmopt-chunk-length-penalty-size">CURLMOPT_<span class="replaceable">*</span></a></code></strong>
       の説明を参照ください。
      </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.curl-multi-setopt-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.curl-multi-setopt-changelog">
  <h3 class="title">変更履歴</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>バージョン</th>
       <th>説明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.2.0</td>
       <td>
        <strong><code><a href="curl.constants.php#constant.curlmopt-max-concurrent-streams">CURLMOPT_MAX_CONCURRENT_STREAMS</a></code></strong> が追加されました。
       </td>
      </tr>

      <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">multi_handle</code> は <span class="classname"><a href="class.curlmultihandle.php" class="classname">CurlMultiHandle</a></span> クラスのインスタンスを期待するようになりました。
  これより前のバージョンでは、<span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> を期待していました。
 </td>
</tr>

      <tr>
       <td>7.1.0</td>
       <td>
        <strong><code><a href="curl.constants.php#constant.curlmopt-pushfunction">CURLMOPT_PUSHFUNCTION</a></code></strong> が追加されました。
       </td>
      </tr>

      <tr>
       <td>7.0.7</td>
       <td>
        <strong><code><a href="curl.constants.php#constant.curlmopt-chunk-length-penalty-size">CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE</a></code></strong>、
        <strong><code><a href="curl.constants.php#constant.curlmopt-content-length-penalty-size">CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE</a></code></strong>、
        <strong><code><a href="curl.constants.php#constant.curlmopt-max-host-connections">CURLMOPT_MAX_HOST_CONNECTIONS</a></code></strong>、
        <strong><code><a href="curl.constants.php#constant.curlmopt-max-pipeline-length">CURLMOPT_MAX_PIPELINE_LENGTH</a></code></strong>、
        <strong><code><a href="curl.constants.php#constant.curlmopt-max-total-connections">CURLMOPT_MAX_TOTAL_CONNECTIONS</a></code></strong>
        が追加されました。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


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