note 18263 deleted from function.str-replace by philip
| From: | philip@php.net | Date: | Mon, 04 Feb 2002 12:54:57 +0000 |
| Subject: | note 18263 deleted from function.str-replace by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-26225@lists.php.net to get a copy of this message | ||
ok, here's a piece of code that really works for pulling the new lines out and making a list
look right. with line breaks and everything!
<li>
<?
$body = str_replace("\n\r\n", "<br><br><li>", $body);
$body = str_replace("\n", "<li>", $body);
echo $body;
?>