Name

parse_ini_file

Synopsis

array parse_ini_file(string filename[, bool process_sections[, int scanner_mode]])

Loads filename—which must be a file in the standard php.ini format—and returns the values contained in it as an associative array, or false if the file could not be parsed. If process_sections is set and is true, a multidimensional array with values for the sections in the file is returned. The scanner_mode option is either INI_SCANNER_NORMAL, the default, or INI_SCANNER_RAW, indicating that the function should not parse option values.

Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.