O'Reilly logo

Programming PHP, 3rd Edition by Peter MacIntyre, Kevin Tatroe, Rasmus Lerdorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required