<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.ini-restore.php',
    1 => 'ini_restore',
    2 => 'Restores the value of a configuration option',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'Функції налаштування та отримання інформації про PHP',
  ),
  'prev' => 
  array (
    0 => 'function.ini-parse-quantity.php',
    1 => 'ini_parse_quantity',
  ),
  'next' => 
  array (
    0 => 'function.ini-set.php',
    1 => 'ini_set',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/info/functions/ini-restore.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ini-restore" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ini_restore</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ini_restore</span> &mdash; <span class="dc-title">Restores the value of a configuration option</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.ini-restore-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ini_restore</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$option</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   Restores a given configuration option to its original value.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ini-restore-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">option</code></dt>
     <dd>
      <p class="para">
       The configuration option name.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ini-restore-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Не повертає значень.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.ini-restore-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Приклад #1 <span class="function"><strong>ini_restore()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$setting </span><span style="color: #007700">= </span><span style="color: #DD0000">'html_errors'</span><span style="color: #007700">;<br /><br />echo </span><span style="color: #DD0000">'Current value for \'' </span><span style="color: #007700">. </span><span style="color: #0000BB">$setting </span><span style="color: #007700">. </span><span style="color: #DD0000">'\': ' </span><span style="color: #007700">. </span><span style="color: #0000BB">ini_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">), </span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">ini_set</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">, </span><span style="color: #0000BB">ini_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">) ? </span><span style="color: #0000BB">0 </span><span style="color: #007700">: </span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">'New value for \'' </span><span style="color: #007700">. </span><span style="color: #0000BB">$setting </span><span style="color: #007700">. </span><span style="color: #DD0000">'\': ' </span><span style="color: #007700">. </span><span style="color: #0000BB">ini_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">), </span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">ini_restore</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">'Original value for \'' </span><span style="color: #007700">. </span><span style="color: #0000BB">$setting </span><span style="color: #007700">. </span><span style="color: #DD0000">'\': ' </span><span style="color: #007700">. </span><span style="color: #0000BB">ini_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">), </span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Поданий вище приклад
виведе:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Current value for &#039;html_errors&#039;: 1
New value for &#039;html_errors&#039;: 0
Original value for &#039;html_errors&#039;: 1</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ini-restore-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ini-get.php" class="function" rel="rdfs-seeAlso">ini_get()</a> - Отримує значення конфігураційного параметра</span></li>
    <li><span class="function"><a href="function.ini-get-all.php" class="function" rel="rdfs-seeAlso">ini_get_all()</a> - Отримує всі параметри конфігурації</span></li>
    <li><span class="function"><a href="function.ini-set.php" class="function" rel="rdfs-seeAlso">ini_set()</a> - Встановлює значення конфігураційного параметра</span></li>
   </ul>
  </p>
 </div>


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