title: How to remove all break tags from a string in PHP?
body: <p>Seems simple enough but I'm having some issues, I tried using preg_replace:</p>
  
  <pre><code>preg_replace("&lt;br /&gt;", "", $string);
  </code></pre>
  
  <p>But what I get is this <code>&lt;&gt;</code> in place of the <code>&lt;br /&gt;</code> in the string when outputted. The break tags in the string will always be in this format not in any of these:</p>
  
  <pre><code>&lt;br/&gt;
  &lt;br&gt;
  &lt;BR /&gt;
  etc.
  </code></pre>
  
  <p>so what's the error I'm making?</p>