<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.curl-multi-setopt.php',
    1 => 'curl_multi_setopt',
    2 => 'Set a cURL multi option',
  ),
  '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' => 'en',
    '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">Set a cURL multi option</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">
   Sets an option on the given cURL multi handle.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.curl-multi-setopt-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   <dt>
<code class="parameter">mh</code></dt><dd><p class="para">Мультидескриптор cURL, якого
повертає <span class="function"><a href="function.curl-multi-init.php" class="function">curl_multi_init()</a></span>.</p></dd>
   
    <dt><code class="parameter">option</code></dt>
    <dd>
     <p class="para">
      One of the <strong><code><a href="curl.constants.php#constant.curlmopt-chunk-length-penalty-size">CURLMOPT_<span class="replaceable">*</span></a></code></strong> constants.
     </p>
    </dd>
   
   
    <dt><code class="parameter">value</code></dt>
    <dd>
      <p class="para">
       The value to be set on <code class="parameter">option</code>.
       See the description of the
       <strong><code><a href="curl.constants.php#constant.curlmopt-chunk-length-penalty-size">CURLMOPT_<span class="replaceable">*</span></a></code></strong> constants
       for details on the type of values each constant expects.
      </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>
        Introduced <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>
        Introduced <strong><code><a href="curl.constants.php#constant.curlmopt-pushfunction">CURLMOPT_PUSHFUNCTION</a></code></strong>.
       </td>
      </tr>

      <tr>
       <td>7.0.7</td>
       <td>
        Introduced <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> and
        <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); ?>