note 8674 added to str_replace
| From: | tegel at chello dot nl | Date: | Sat, 23 Sep 2000 08:43:48 +0000 |
| Subject: | note 8674 added to str_replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5401@lists.php.net to get a copy of this message | ||
I meant: $html=str_replace ('\n','<BR>',$text) is not working;
$html=str_replace(chr(10),'<BR>',$text) is.
http://www.php.net/manual/function.str-replace.php