How to remove a link from content using php?

alerafomina

New Member
\[code\]$text = file_get_contents('http://www.example.com/file.php?id=name');echo preg_replace('#<a.*?>.*?</a>#i', '', $text)\[/code\]the link contains this content:\[code\]text text text. <br><a href='http://www.example.com' target='_blank' title='title' style='text-decoration:none;'>name</a>\[/code\]what is the problem at this script?
 
Back
Top