Re: "Hard return" causing hangups
- From: Peter van Schie <vanschie.peter@xxxxxxxxx>
- Date: Sun, 30 Oct 2005 13:39:47 +0100
Toby Inkster wrote:
Peter van Schie wrote:
$strMessage = preg_replace("/\n|\r\n|\r/", "", $strMessage);
Isn't thie middle "\r\n" a bit redundant?
$strMessage = preg_replace("/[\r\n]", "", $strMessage);
True, but it does exactly the same. :)
-- http://www.phpforums.nl .
- References:
- "Hard return" causing hangups
- From: Jimmy Clay (www.songofthecoyote.com)
- Re: "Hard return" causing hangups
- From: Toby Inkster
- "Hard return" causing hangups
- Prev by Date: Re: Get a file's version in PHP
- Next by Date: Re: Get a file's version in PHP
- Previous by thread: Re: "Hard return" causing hangups
- Next by thread: Suggestions for a good Object Relational Mapper for PHP 5
- Index(es):