parse_ini_file
Description
array parse_ini_file ( string filename [, bool process_sections] )
parse_ini_file() loads in the
ini file specified in filename,
and returns the settings in it in an associative array.
By setting the last process_sections
parameter to TRUE, you get a multidimensional array, with
the section names and settings included. The default
for process_sections is FALSE
Note: This function has nothing to do with the php.ini file. It is already processed, the time you run your script. This function can be used to read in your own application's configuration files.
Note: If a value in the ini file contains any non-alphanumeric characters it needs to be enclosed in double-quotes (").
Note: Since PHP 4.2.1 this function is also affected by safe mode and open_basedir.
Note: As of PHP 5.0 this function also handles new lines in values.
Note: There are reserved words which must not be used as keys for ini files. These include: null, yes, no, true, and false. Values null, no and false results in "", yes and true results in "1". Characters {}|&~