or you could use preg_replace

preg_replace("/\n/", "<BR>\n", $var);


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 2:56 AM
> To: Joeri Vankelst
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] Enter to BR
> 
> 
> > How can I get an Enter typed in a HTML textfield to be inerpreted as a BR
> > or
> > a P tag?
> > Someone sugested I use the split() function, but I wouldn't know how...
> 
> nl2br
> 
> http://at.php.net/manual/de/function.nl2br.php
> 
> michi
> 
> -- 
> Sent through GMX FreeMail - http://www.gmx.net
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to