Remove from string
<p>I have the following that I need removed from string in loop.  </p>

<pre><code>&lt;comment&gt;Some comment here&lt;/comment&gt;
</code></pre>

<p>The result is from a database so the the content inside the comment tag is different.<br>
Thanks for the help.</p>

<p>Figured it out. The following seems to do the trick.  </p>

<p><code>echo preg_replace('~\&lt;comment&gt;.*?\&lt;/comment&gt;~', '', $blog-&gt;comment);</code></p>
