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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: j-f at gmx dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 09:01:34 2025 UTC