(PHP 4, PHP 5, PHP 7)
ini_restore — �ָ�����ѡ���ֵ
$varname
) : void�ָ�ָ��������ѡ�����ԭʼֵ��
varname
����ѡ�����ơ�
û�з���ֵ��
Example #1 ini_restore() ����
<?php
$setting = 'y2k_compliance';
echo 'Current value for \'' . $setting . '\': ' . ini_get($setting), PHP_EOL;
ini_set($setting, ini_get($setting) ? 0 : 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