Available Containers

Supported configuration file types

The Config package supports reading and writing to different "containers" - types of configuration files. Ini-style configuration files are very common.

Feature comparison
Container Comments Sections Nested sections Multiline strings Boolean Int/float Null
Apache yes yes yes - (yes)* (yes)* (yes)*
GenericConf yes - - yes (yes)* (yes)* (yes)*
IniCommented yes yes - - (yes)* (yes)* (yes)*
IniFile - yes - yes (yes)* (yes)* (yes)*
PHPArray - yes yes yes yes yes yes
PHPConstants yes - - - (yes)* (yes)* (yes)*
XML no yes yes yes (yes)* (yes)* (yes)*

(yes)* indicates that saving and loading those types does work, but the type of the variable is "string" after reading the config file.

Editing a configuration (Previous) Apache (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.