Re: "Hard return" causing hangups
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: "Hard return" causing hangups

From: Peter van Schie <vanschie.peter@gmail.com>
Date: Sun Oct 30 2005 - 13:39:47 CET

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
Received on Mon Nov 21 02:52:58 2005