Doc #54611 [Opn->Csd]: one functionality is left out

From: Date: Wed, 27 Apr 2011 08:45:29 +0000
Subject: Doc #54611 [Opn->Csd]: one functionality is left out
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6300@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54611&edit=1 ID: 54611 Updated by: bjori@php.net Reported by: neptronix at gmail dot com Summary: one functionality is left out -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: linux PHP Version: Irrelevant -Assigned To: +Assigned To: bjori Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2011-04-27 10:45:14] bjori@php.net Automatic comment from SVN on behalf of bjori Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=310543 Log: Fixed bug#54611 one functionality is left out ------------------------------------------------------------------------ [2011-04-27 10:37:32] bjori@php.net The function replaces "\r\n", "\n" and "\r". I suppose we could have an explicit example for it... ------------------------------------------------------------------------ [2011-04-27 10:15:59] neptronix at gmail dot com Nope, it only mentions that 'newlines' will be converted to < BR >, which i assume are the \n character... When you stick an ordinary return carrier in the text string, it converts that to a < BR > also.. no mention there.. ! not even in the comments from users below. I am a new PHP programmer, i hope this functionality isn't an undocumented fluke because i couldn't think of any other way to do it.. ------------------------------------------------------------------------ [2011-04-27 10:08:43] bjori@php.net I don't get it. Isn't that exactly what the example shows? ------------------------------------------------------------------------ [2011-04-27 06:43:25] neptronix at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.nl2br#Examples --- NL 2 BR can also be used to insert < BR > tags when a string contains return characters other than \n. Spent many hours on google trying to find out a PHP command that could do this.. but the functionality wasn't mentioned in this doc!! For example, this string: "this is a bunch of text in a string from mysql" can come out with < BR > tags in it with nl2br. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54611&edit=1

« previous php.doc.bugs (#6300) next »