.ini Files – the Configuration Format You Never Knew You Wanted (maybe)
Over the past weekend, I discovered an undocumented (and what I think is a super cool) feature in PHP’s parse_ini_file and parse_ini_string functions. If you assign to a field an environment variable, it will populate the resulting array with it’s value! I stumbled upon this while throwing together a configuration system for an API I am working on (no framework, just libraries and single component–packages). When I landed on using ....