|
Posted by Peter van Schie on 10/30/05 14:39
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
Navigation:
[Reply to this message]
|