Do you know how to read the file and get each line?
First you should check if the line start with a - and then extract the "middle text"
Secondly, you should validate if the lines contains a = which can be done using a function like [phpnet=strpos]strpos()[/phpnet].

You should be able to use a function like split or explode to separate the key and value.