Re: FN-FORUM: Small PHP Problem
date posted 28th January 2007 17:21
On Sunday 28 January 2007 18:06, Peter Scoins wrote:
> have a small problem with the following,
>
> (to replace new lines '\n' with 's)
>
>
> $message=ereg_replace( "\n", "", $message );
>
>
> The message is saved into in text file and is producing the <br>
> (basically the html character codes for < and >)
>
> any ideas to fix it so it saves 's in the text file rather then
> <br>
Do you really want a regex for this ? think nl2br( ); would do the job
instead, probably faster.
IanR
--
---
http://narian.org.uk GSM: 07906-204-878 Landline: 01382 805 079