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/
-------------------------------------------------------------------------


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to