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

From: Date: Wed, 27 Apr 2011 08:37:34 +0000
Subject: Doc #54611 [Opn]: one functionality is left out
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6299@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 Type: Documentation Problem Package: Documentation problem Operating System: linux PHP Version: Irrelevant Block user comment: N Private report: N New Comment: The function replaces "\r\n", "\n" and "\r". I suppose we could have an explicit example for it... Previous Comments: ------------------------------------------------------------------------ [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 (#6299) next »