PHP Dokumentation: Function parse-ini-string
12. Januar 2010 von werner
Beschreibung
parse_ini_string() returns the settings in string ini in an associative array.
The structure of the ini string is the same as the php.ini's.
Parameter-Liste
- ini
The contents 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.
Rückgabewerte
The settings are returned as an associative array on success, and FALSE on failure.
Anmerkungen
Hinweis: There are reserved words which must not be used as keys for ini files. These include: null, yes, no, true, false, on, off, none. Values null, no and false results in "", yes and true results in "1". Characters {}|&~![()^" must not be used anywhere in the key and have a special meaning in the value.
Siehe auch
- parse_ini_file() – Analysiert eine Konfigurationsdatei