Is there a method to remove all the line breaks from a string? Previous posts suggest that I use:
str_replace("\r","",$text) as well as str_replace("\n","",$text)
-- with the assumption that the \r would further condense the string. Calling str_replace on the \r doesn't seem to effect the string.
Here's what I would like to do:
"this is a <br><br> test"
Instead of
"this is a
<br>
<br>
test"
Thanks. Your suggestions will be greatly appreciated.
--Andrew