Re: nl2br problem

From: Date: Fri, 28 May 2004 18:41:39 +0000
Subject: Re: nl2br problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187159@lists.php.net to get a copy of this message
> --- Gerben <gerbendekeijzer@12move.nl> wrote: > > does anyone know how to create a true nl2br function in stead of a > > nl2br-and-nl function. > > $foo = str_replace('\n', '<br />', $foo); Make that "\n" to interpret the newline correctly. Sorry about that. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/

« previous php.general (#187159) next »