Posted by ThaRez on 10/19/05 23:49
Hello!
I have a very newbie question. If lets say the variable $text holds the
value of of a textarea, reciev via "post"; How do I remove the possible
newlines entered by the user? For example, if the user writes the
following in the textarea:
"Hello all
you out there"
How do I get this text (stored in $text) to become:
"Hello all you out there"?
I've tried trim($text) but it doesn't work...
Please advice me how to proceed.
Thanks alot
Richard
[Back to original message]
|