How to I replace a block of text while specifying start and end tags and a replacement string?
Posted on 2008-10-12
I need to replace a block of text e.g.
this is some
I want to remove
With some some other text e.g.
So the result should be...
I would expect the function to work like this
$result = str_replace_func($my_text, "<start-tag>", "<end-tag">, "new text");