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]
|