note 13955 added to function.nl2br.php

From: Date: Wed, 11 Jul 2001 12:32:24 +0000
Subject: note 13955 added to function.nl2br.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15230@lists.php.net to get a copy of this message
for convert all \n to &lt;br&gt; and if don't want to use nl2br, use this simple regular expression $text = ereg_replace("(\n)", "&lt;BR&gt;", $text); # note: # &lt;BR&gt; is \<br\> whitout \ # http://www.php.net/manual/en/function.nl2br.php

« previous php.notes (#15230) next »