php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #9408 Mistakable description of nl2br()
Submitted: 2001-02-22 15:01 UTC Modified: 2001-02-22 19:21 UTC
From: j-f at gmx dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.4pl1 OS: -
Private report: No CVE-ID: None
 [2001-02-22 15:01 UTC] j-f at gmx dot net
The two sentences in the documentation of nl2br() are contradictory (only the second one is true):

- "Converts newlines to HTML line breaks"
- "Returns string with '<BR>' inserted before all newlines."

In the german version of the manual the description also suggests that the newlines are *replaced*.

May be you think it's a unimportant flaw, but in de.comp.lang.php it is a really frequently asked question - so please fix it. :-)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-22 19:07 UTC] torben@php.net
Thanks for the report; fixed in CVS.

Cheers,

Torben
 [2001-02-22 19:21 UTC] eschmid@php.net
Fixed the second part of the bug message in the German tree
of the manual.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC