Posted by MS on 04/07/07 16:44
"Tyno Gendo" <user@example.com> wrote in message
news:PyPRh.45914$kF3.14708@fe1.news.blueyonder.co.uk...
> <?php
> $text="This is a line\r\nwith carriage\r\nreturns\r\nin it";
> echo "<pre>$text</pre>";
> $nocr=preg_replace("/\r\n/"," ",$text);
> echo "<pre>$nocr</pre>";
> ?>
Thanks Guys.
I had a Mind Block on this one !! I knew about the Trim() limits, except
for today !!
[Back to original message]
|