note 9682 deleted from ereg_replace by ronabop
| From: | ronabop@php.net | Date: | Sun, 19 Nov 2000 03:20:57 +0000 |
| Subject: | note 9682 deleted from ereg_replace by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7873@lists.php.net to get a copy of this message | ||
I saw above that someone stated that you needed to use the ASCII code for a carriage return to
replace it. Actually, this method is a lot easier:
$News = ereg_replace ("n", "<br>", $News);
In this case, it replaces every carriage return in the $News string with a <BR> basically
converting it into HTML.