Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- str_replace doesn't find "\n\n"
- Martin Magnusson
July 13, 2005, 8:54 am
rate this thread
interpreted as a paragraph break.
I thought that
$text = str_replace("\n\n", "</p><p>", $text);
would work, but that doesn't find anything to replace in my strings, and
$text = str_replace("\n", "</p><p>", $text);
gives me too many paragraphs, of course.
As an example of what I want, this message should be divided into three