Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- cant replace \n
April 3, 2005, 9:48 pm
rate this thread
I am getting some data from an html form (textarea). I am having trouble
with replacing line breaks in the data with spaces.
here is my line:
trim(stripslashes(str_replace("\n", ' ',
I end up with lots of but the linebreaks are still there.
What am I doing wrong?