note 11276 added to str_replace
| From: | matt at herongate dot demon dot co dot uk | Date: | Wed, 14 Feb 2001 00:10:48 +0000 |
| Subject: | note 11276 added to str_replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11014@lists.php.net to get a copy of this message | ||
If you want to make it really HTML friendly with the formatting intact use:
$text = str_replace("\n","<br>",$text);
http://www.php.net/manual/en/function.str-replace.php