I have a conf file like this: http://pastie.org/768582 and my goal is to get in an array the comments and the key/value of each keys.
array(
array(
comment => "The PROJECT_NAME tag is a single",
key => "PROJECT_NAME",
value => "JMK",
),
)
I would know what algoritm do I have to use?
I have already transform the content of the configuration file to an array (line by line) with explode() function.
Now I am trying to get all the comment lines while next line begins with # and the couple key/value but it is here that I have trouble.
If someone have an idea it would be nice. Thx.