|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-12-07 22:31 UTC] l dot anzinger at gmail dot com
Description: ------------ Using the second parameter of nl2br, as discribed in the docs (http://php.net/nl2br), does not work. Reproduce code: --------------- <?php echo nl2br("foo\nbar", false); ?> Expected result: ---------------- foo<br> bar Actual result: -------------- Warning: Wrong parameter count for nl2br() in /var/www/superwayne.org/cron/- on line 2 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Apr 16 19:00:01 2026 UTC |
> Version: 5.2.11 > echo nl2br("foo\nbar", false); ^^^^^ Available as of 5.3.0: http://www.php.net/nl2br#function.nl2br.changelog Regards, Carsten