downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ini_set> <ini_get
[edit] Last updated: Fri, 07 Jun 2013

view this page in

ini_restore

(PHP 4, PHP 5)

ini_restoreRestores the value of a configuration option

Descrierea

void ini_restore ( string $varname )

Restores a given configuration option to its original value.

Parametri

varname

The configuration option name.

Valorile întoarse

Nu este întoarsă nici o valoare.

Exemple

Example #1 ini_restore() example

<?php
$setting 
'y2k_compliance';

echo 
'Current value for \'' $setting '\': ' ini_get($setting), PHP_EOL;

ini_set($settingini_get($setting) ? 1);
echo 
'New value for \'' $setting '\': ' ini_get($setting), PHP_EOL;

ini_restore($setting);
echo 
'Original value for \'' $setting '\': ' ini_get($setting), PHP_EOL;
?>

Exemplul de mai sus va afișa:

Current value for 'y2k_compliance': 1
New value for 'y2k_compliance': 0
Original value for 'y2k_compliance': 1

Vedeți de asemenea



add a note add a note User Contributed Notes ini_restore - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites