Re: Documentation for nl2br()

From: Date: Sun, 22 Dec 2002 11:17:57 +0000
Subject: Re: Documentation for nl2br()
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969350369@lists.php.net to get a copy of this message
On Sun, 22 Dec 2002, Christian Wolfgang Hujer wrote: > Hello dear PHP documentation team, > > > I suggest you add in the documentation that > > 1. nl2br() does *NOT REPLACE* newlines with break elements but inserts a break > element before every newline. From the documentation: "nl2br -- Inserts HTML line breaks before all newlines in a string" > > 2. nl2br() *CHANGES THE ORIGINAL STRING* and returns a reference to it, but > does not create a new string. uhm, it doesn't do that. Can you provide a script to demonstrate? Derick -- ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------

« previous php.doc (#969350369) next »