Parse .ini file with flat keys to multidimensional array
I wanted to convert an array, based on an .ini file, with a pattern in flat keys to a multidimensional array. I found this post Convert Flat PHP Array to Nested Array based on Array Keys and made the following modification.