Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

ini_restore

Description

Restores the value of a configuration option

Syntax

ini_restore(
    string $option
): void

Parameters

option

The configuration option name.

Return

No value is returned.

Examples

1

<?

$option = 'html_errors';

echo $option . PHP_EOL;
echo "current: " . ini_get($option) . PHP_EOL;

ini_set($option, ini_get($option) ? 0 : 1);
echo "new: " . ini_get($option) . PHP_EOL;

ini_restore($option);
echo "original: " . ini_get($option);

?>
html_errors
current: 1
new: 0
original: 1
HomeMenu