Closed iongion closed 10 years ago
The INI file format is very basic and designed to support key / value pairs located in various sections. If you really need more complex types such as arrays I would look into YAML or JSON for the storage format.
I'm going to close this one out as "won't implement". There is a deep rabbit hole here that I really don't want to go down.
Array datatype in INI files are very common, in my case i use this lib in chef cookbook and some server use this format, moving to different format is not an option.
Some examples: http://php.net/manual/en/function.parse-ini-file.php https://www.npmjs.com/package/ini-config-parser
Would you be willing to add PHP like array syntax support for reading/generating ini files, such as:
[section] val[]=1 val[]="stuf" val[]="bla"