Re: Swapping <BR> for \n... ?

From: Date: Wed, 30 Jan 2002 04:22:05 +0000
Subject: Re: Swapping <BR> for \n... ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-82672@lists.php.net to get a copy of this message
Nevermind, I found some code at last which actually works : $txt = preg_replace("/(\015\012)|(\015)|(\012)/","<BR>",$txt); "Jon" <Jon@digital-explosion.co.uk> wrote in message news:20020130041038.83238.qmail@pb1.pair.com... > I'm processing a form but all the functions I've found on the web only seem > to add the <BR> after the \n. I need to remove the \n altogether - anyone > know how I can kill the \n and put a <BR> in it's place? > > Cheers, > Jon > >

« previous php.general (#82672) next »