parse_ini_file()
parse_ini_file - Parse a configuration file
Syntax
array parse_ini_file (
string $filename,
bool $process_sections,
int $scanner_mode)
Arguments
- filename - The filename of the ini file being parsed.
- process_sections - By setting the process_sections parameter to TRUE, you get a multidimensional array, with the section names and settings included. The default for process_sections is FALSE
- scanner_mode - Can either be INI_SCANNER_NORMAL (default) or INI_SCANNER_RAW. If INI_SCANNER_RAW is supplied, then option values will not be parsed.
Description
parse_ini_file() loads in the ini file specified in filename, and returns the settings in it in an associative array.
Version
PHP 4, 5
Return value
The settings are returned as an associative array on success, and FALSE on failure.