View Single Post
Old 12-04-2007, 07:49 AM   #1 (permalink)
Sam Granger
The Acquainted
 
Join Date: Sep 2007
Posts: 126
Thanks: 4
Sam Granger is on a distinguished road
Default remove from string... how to do?

Lets say I have a string with the following content:
Quote:
[rightimage]imagename.jpg[/image]Hello this is a test[image]hello.jpg[/image][image]chimp.jpg[/image]Cool! [image]cool.jpg[/image]
How can I make PHP search for the tags (image and rightimage) and remove them ant the contents so I'm left over with:
Quote:
Hello this is a testCool!
Thanks for looking!
Sam Granger is offline  
Reply With Quote