Reply to Howto remove newlines?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация