Hello,
i have a string that was entered in a web form and stored in a mysql
database where the user entered carriage returns as well as <br>'s
after each line in the form. the data is stored as
line 1<br>
line 2<br>
line 3
i need is to modify the text so instead it reads
line1<br>line2< br>line3
the problem is when i use strpos() and substr() on the multi line
text, i keep getting these invisible \n chars that i can't seem to get
rid of. even after using trim($string), i still can't get rid of these
buggers.
is there a function in php that strips the invisible \n chars that are
generated from a web form?
Thanks so much for any suggestions :)
Aaron;
i have a string that was entered in a web form and stored in a mysql
database where the user entered carriage returns as well as <br>'s
after each line in the form. the data is stored as
line 1<br>
line 2<br>
line 3
i need is to modify the text so instead it reads
line1<br>line2< br>line3
the problem is when i use strpos() and substr() on the multi line
text, i keep getting these invisible \n chars that i can't seem to get
rid of. even after using trim($string), i still can't get rid of these
buggers.
is there a function in php that strips the invisible \n chars that are
generated from a web form?
Thanks so much for any suggestions :)
Aaron;
Comment