Echo content between tags?
<p>Is it possible to get and then echo the content in between tags using only <code>PHP</code>?</p>

<p>For instance. If this is the following <code>HTML</code>:</p>

<pre><code>&lt;td class="header subject"&gt;Text&lt;/td&gt;
</code></pre>

<p>How can you get <code>Text</code> from inside the tags and then <code>echo</code> it?</p>

<p>I thought this would work:</p>

<pre><code>&lt;? 
preg_match("'&lt;td class=\"header subject\"&gt;(.*?)&lt;/td&gt;'si", $source, $match);
if($match) echo "result=".$match[1];
?&gt;
</code></pre>

<p>But the <code>$source</code> variable has to be the entire page.</p>

<p>Note: There is only one instance of the <code>header subject</code> class, so there shouldn't be a problem with multiple tags.</p>
