Jump to content

removing an image with str_replace()


blake87

Recommended Posts

When I use the str_replace function, I can remove most of the desired strings within the text but when I attempt to remove an image containing specific words, it is not removed can anyone help me with this

 

example

 

$words =array("<img src=\"http://image");

$introtext =str_replace($words,"",$introtext);

 

Thanks in advance I hope theres a simple solution

 

Link to comment
https://forums.phpfreaks.com/topic/120177-removing-an-image-with-str_replace/
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.