Archive for February, 2010
ini_restore()
Restore a configuration option to its original system value. Use this to get the original setting back if you’ve changed it with ini_set() or if it was changed in an .htaccess file. You don’t have to know the original value.
ini_set()
Set the value of a configuration option during run time. The new value will expire at the end of the script’s execution. Not everything can be set at this level. See the manual for details.
ini_get()
Obtain the value of a configuration option during run time. This always returns a string. For the “on/off” variety, it could be “On” or “1″ for on; “Off”, “0″, or “” for off.
Type Casting
Converting a value of one type to be of another type is called type casting. Simply put the new type in parenthesis before the value (kind of a “reverse function” look). For example:
$newVal = (int) $val;
