note 18263 added to function.str-replace

From: Date: Wed, 16 Jan 2002 16:13:23 +0000
Subject: note 18263 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-24889@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; ?> -- http://www.php.net/manual/en/function.str-replace.php http://master.php.net/manage/user-notes.php?action=edit+18263 http://master.php.net/manage/user-notes.php?action=delete+18263 http://master.php.net/manage/user-notes.php?action=reject+18263

« previous php.notes (#24889) next »