title: How to remove match comment tag from in html use preg_replace
body: <p>i've problem to remove this tag <code>&lt;!-- comment --&gt;</code>look too the empty space in that tag. how to remove it and also change it to empty character not space use <code>preg_replace()</code></p>
  
  <p>solved</p>
  
  <p>just use this syntax:</p>
  
  <p><code>$content = "hello &lt;!--- comment --&gt; world";</code></p>
  
  <p><code>$html = preg_replace('/&lt;!-- comment --&gt;/i','',$content);</code></p>
  
  <p>Output</p>
  
  <p><code>hello world</code></p>