Introduction
I am describing the ini_set() and ini_restore() functions in PHP. First of all, I will discuss the ini_set() function.
The ini_set() function sets the value of the specified configuration option. The configuration option value will apply the new value of the script's execution time and the old value is resturned.
Syntax
|
ini_set ( "string $varname ", string $newvalue ); |
varname all the available option can be set using the ini_set() function.
newvalue new value for the option.
Example
<?php
//undefined function calling
error_reporting(E_ALL);
ini_set("display_errors","on");
echo "Line Before calling function ShowData()";
Echo "<br>";
//undefined function calling
ShowDatad();
echo "Line After calling function showData()";
?>
Output



Comments
Join the conversation! Your thoughts help the community grow.