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

ini_set

Description

The ini_set of Options / Information for PHP sets the value of a configuration option.

Syntax

ini_set(
    string $option,
    string|int|float|bool|null $value
): string|false

Parameters

option

Not all the available options can be changed using ini_set().

value

The new value for the option.

Return

Returns the old value on success, false on failure.

Examples

1 · option value

<?

$option = "max_execution_time";
$value = 180;

$return = ini_set($option, $value);

echo $return;

?>
90

2 · ini_get

<?

$option = "max_execution_time";
$value = 180;

$return = ini_set($option, $value);

echo $return . PHP_EOL;

$ini_get = ini_get($option);

echo $ini_get;

?>
90
180
HomeMenu