12-04-2007, 07:49 AM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Posts: 126
Thanks: 4
|
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!
|
|
|
|