The PHP parse_ini_file() function parses a configuration (ini) file and returns the settings.
Output
// returns the settings in test.ini
Syntax
parse_ini_file(file, process_sections, scanner_mode)
Parameters
Parameter | Description |
---|---|
file | Specifies the ini file to parse (required) |
process_sections | If set to TRUE, it returns is a multidimensional array with section names and settings included (default is FALSE) |
scanner_mode | Can be one of the following values:
|