note 39463 deleted from function.strtr by didou
| From: | didou@php.net | Date: | Thu, 29 Jan 2004 12:58:47 +0000 |
| Subject: | note 39463 deleted from function.strtr by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64375@lists.php.net to get a copy of this message | ||
Note Submitter: info at jdmedia dot nl
----
This is a handy and simple code to change hard returns from your SQL database to HTML-returns:
$addreturns = array ("\n" => '<br>');
$withreturns = strtr($row[0], $addreturns) . "\n";