I have a .ini file with contents of...
[template] color1 = 000000 color2 = ff6100 color3 = ff6100 color4 = 000000
And a file with contents belo
There's a function for that in php: http://php.net/manual/en/function.parse-ini-file.php
You could use it like this:
The values can be found like this: