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: Tue, 21 May 2013

view this page in

ini_restore

(PHP 4, PHP 5)

ini_restore설정 옵션 값을 복구

설명

void ini_restore ( string $varname )

주어진 설정 옵션을 원래 값으로 복구합니다.

인수

varname

설정 옵션 이름.

반환값

값을 반환하지 않습니다.

예제

Example #1 ini_restore() 예제

<?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;
?>

위 예제의 출력:

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

참고

  • ini_get() - Gets the value of a configuration option
  • ini_get_all() - 모든 설정 옵션을 얻습니다
  • ini_set() - Sets the value of a configuration option



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