Re: [PHP-DOC] Documentation for nl2br()

2002-12-22 Thread Christian Wolfgang Hujer
Am Sonntag, 22. Dezember 2002 12:17 schrieb Derick Rethans:
> 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?
Yeah, it does.
Oh, sorry it doesn't.
I confused myself.
Sorry.
Please also delete my user contributed note.
And reading properly helps. Somehow I was reading "inserts *for* all newlines" 
instead of "inserts *before* all newlines".

Sorry for any inconvenience and taking your time.

Bye and thanks a lot. Sorry.
-- 
ITCQIS GmbH
Christian Wolfgang Hujer
Geschäftsführender Gesellschafter
Telefon: +49  (0)89  27 37 04 37
Telefax: +49  (0)89  27 37 04 39
E-Mail: [EMAIL PROTECTED]
WWW: http://www.itcqis.com/

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




Re: [PHP-DOC] Documentation for nl2br()

2002-12-22 Thread Derick Rethans
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




[PHP-DOC] Documentation for nl2br()

2002-12-22 Thread Christian Wolfgang Hujer
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.

2. nl2br() *CHANGES THE ORIGINAL STRING* and returns a reference to it, but 
does not create a new string.

If this were already included, it had saved me a lot of time and confusion.

When you add this, you should remove my comment from the nl2br() 
documentation.

Bye
-- 
ITCQIS GmbH
Christian Wolfgang Hujer
Geschäftsführender Gesellschafter
Telefon: +49  (0)89  27 37 04 37
Telefax: +49  (0)89  27 37 04 39
E-Mail: [EMAIL PROTECTED]
WWW: http://www.itcqis.com/

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