Re: Documentation for nl2br()
| From: | Christian Wolfgang Hujer | Date: | Sun, 22 Dec 2002 13:48:45 +0000 |
| Subject: | Re: Documentation for nl2br() | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969350370@lists.php.net to get a copy of this message | ||
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: Christian.Hujer@itcqis.com
WWW: http://www.itcqis.com/