PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular

ini_set

Tags: PHP 5.x PHP 7.x PHP 8.x

ini_set — Sets the value of a configuration option.

Description

ini_set(
    string $option,
string $value
): string|false
Sets the value of the given configuration option. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending.

Parameters

option
Not all the available options can be changed using ini_set().
value
The new value for the option.

Return Values

Returns the old value on success, false on failure.

ini_set - New snippets