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

ini_set

Description

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(). There is a list of all available options in the appendix.

value

The new value for the option.

Return

Returns the old value on success, false on failure.

Examples

1

<?

$option = 'display_errors';
$value = '1';

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

var_export($return);

?>
''

2

<?

$option = 'display_errors';
$value = '1';

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

echo ini_get($option);

?>
1
HomeMenu