note 89377 deleted from function.nl2br by danbrown
| From: | danbrown@php.net | Date: | Thu, 05 Mar 2009 17:01:40 +0000 |
| Subject: | note 89377 deleted from function.nl2br by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-151530@lists.php.net to get a copy of this message | ||
Note Submitter: jasonchan at sysfonet dot com
----
<br> to \n 100% work script
$phrase = $exntext;
$order = array("<br>");
$replace = array("\n");
$newphrase = str_replace($order, $replace, $phrase);
just use the simple replace function in PHP will do