You are here: Re: "Hard return" causing hangups « PHP Programming Language « IT news, forums, messages
Re: "Hard return" causing hangups

Posted by Peter van Schie on 10/30/05 03:29

Jimmy Clay (www.songofthecoyote.com) wrote:

> My solution is to have PHP code remove all hard returns form the
> strings before they are stored in the database. But I'm not sure what
> the code would be for that.

Something like this would do the trick:

$strMessage = preg_replace("/\n|\r\n|\r/", "", $strMessage);

--
http://www.phpforums.nl

 

Navigation:

[Reply to this 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

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