note 8093 added to nl2br
| From: | brut at imediasolutions dot net | Date: | Sat, 26 Aug 2000 15:33:54 +0000 |
| Subject: | note 8093 added to nl2br | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3411@lists.php.net to get a copy of this message | ||
This code also works. The 10 is an ASCII representation
for line feed and 13 is for carriage return.
<?if ($submit) {
$new=ereg_replace (10,"<br>",$text);
echo $new;
}
else{
/*form stuff*/
}
?>
http://www.php.net/manual/function.nl2br.php