note 28103 deleted from function.eregi-replace by nicos
| From: | nicos@php.net | Date: | Fri, 03 Jan 2003 20:17:05 +0000 |
| Subject: | note 28103 deleted from function.eregi-replace by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-41620@lists.php.net to get a copy of this message | ||
How Do i detect line breaks in a string
and replace them with <br/>? (without the /)
ie.
$string=
"The first line
then this one";
// to print using ergei_replace()
The first line
<br>
then this one