title: How to remove a link from content in php?
body: <p>How can i remove the link and remain with the text?</p>
  
  <pre><code>text text text. &lt;br&gt;&lt;a href='http://www.example.com' target='_blank' title='title' style='text-decoration:none;'&gt;name&lt;/a&gt;
  </code></pre>
  
  <p>like this:</p>
  
  <pre><code>text text text. &lt;br&gt;
  </code></pre>
  
  <p>i still have a problem.....   </p>
  
  <pre><code>$text = file_get_contents('http://www.example.com/file.php?id=name');
  echo preg_replace('#&lt;a.*?&gt;.*?&lt;/a&gt;#i', '', $text)
  </code></pre>
  
  <p>in that url was that text(with the link) ...</p>
  
  <p>this code doesn't work... </p>
  
  <p>what's wrong?</p>
  
  <p>Can someone help me?</p>