|
I have a textarea that i get via $_POST in php. I want to replace the carriage returns in the string, but it won't work. I tried $var=str_replace("\n", "",$var); but it didn't work. Also, $var=str_replace("\n", "a",$var); will put an a in between the carriage returns, but it does not get rid of them. Any ideas?
|