note 5341 modified in nl2br by zak
| From: | zak@php.net | Date: | Fri, 29 Dec 2000 23:37:34 +0000 |
| Subject: | note 5341 modified in nl2br by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9208@lists.php.net to get a copy of this message | ||
i had the "black box" problem. i now use
$text = str_replace("\r\n","<br>",$text);
which seems to work (what the heck is \r !?)
[Editor's Note: \r is a carriage return -zak@php.net]
http://www.php.net/manual/function.nl2br.php