<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.ini-restore.php',
    1 => 'ini_restore',
    2 => 'Restaure la valeur de l\'option de configuration',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'Fonctions sur les options et les informations de 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' => 'fr',
    '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">Restaure la valeur de l&#039;option de configuration</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ini-restore-description">
  <h3 class="title">Description</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">
   Restaure la valeur originale de l&#039;option de configuration
   <code class="parameter">option</code>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ini-restore-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">option</code></dt>
     <dd>
      <p class="para">
       Le nom de l&#039;option de configuration.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ini-restore-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Aucune valeur n&#039;est retournée.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.ini-restore-examples">
  <h3 class="title">Exemples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Exemple avec <span class="function"><strong>ini_restore()</strong></span></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">'Valeur courante de \'' </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">'Nouvelle valeur de \'' </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">'Valeur originale de \'' </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>L&#039;exemple ci-dessus va afficher :</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Valeur courante de &#039;html_errors&#039;: 1
Nouvelle valeur de &#039;html_errors&#039;: 0
Valeur originale de &#039;html_errors&#039;: 1</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ini-restore-seealso">
  <h3 class="title">Voir aussi</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> - Lit la valeur d'une option de configuration</span></li>
    <li><span class="function"><a href="function.ini-get-all.php" class="function" rel="rdfs-seeAlso">ini_get_all()</a> - Lit toutes les valeurs de configuration</span></li>
    <li><span class="function"><a href="function.ini-set.php" class="function" rel="rdfs-seeAlso">ini_set()</a> - Modifie la valeur d'une option de configuration</span></li>
   </ul>
  </p>
 </div>


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