Read a .info file with PHP
<p>I've created a .info file similar to how you would in drupal.</p>

<pre><code>#Comment
Template Name = Valley

styles[] = styles/styles.css, styles/media.css
scripts[] = js/script.js
</code></pre>

<p>I want to use PHP get each variable and their values. For example I'd like to put the <code>Template Name</code> value to a PHP variable called <code>Template Name</code> and put the <code>styles[]</code> values in an array if there is mroe than one.</p>

<p>I'd also need to avoid it picking up on comments that are defined be a hash <code>#</code> before the text.</p>

<p>It seems a lot to ask, bt I'm really not sure how to go about doing this. If someone has a solution I'd be very greatful, however if someone could just point me in the right direction that'll be just as helpful.</p>

<p>Thanks in advanced!</p>
