Jump to content

Replacing Tags


jordan443

Recommended Posts

I'm need a script that replaces multiple <a href="example.com"> tags with 
<a href="example2.com" onClick='this.form.submit()'>

 

I have already wrote the part for grabbing the html (the html grabbed is $code)

 
........... $code = substr($file_contents, $start, $end); 
 
echo $code; ?>

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/277046-replacing-tags/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.