php read file looking for string
<p>I'm trying to read a file and look for a specific element within the file.  Once it finds it, I would like the script to add the element to a variable.  So far I have not been able to find anything on this.</p>

<p>This is kind of what I'm looking for:</p>

<pre><code>$var = read(($file), "&lt;!--Everything in the comment line--&gt;")
</code></pre>
