note 57103 deleted from function.ereg-replace by nlopess
| From: | nlopess@php.net | Date: | Sat, 24 Sep 2005 07:51:28 +0000 |
| Subject: | note 57103 deleted from function.ereg-replace by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-95687@lists.php.net to get a copy of this message | ||
Note Submitter: info at pcshooter dot ch
Reason: useless
----
i found this very simple for newbies:
<?php
$newline= chr(13);
$intext = $dtl;
if ($newline = chr(13)){
$intext = ereg_replace($umbruch1, '<br>', $intext);
}
elseif ($umbruch1 = chr(10)){
$intext = ereg_replace($umbruch1, '<br>', $intext);
}
wordwrap($intext,75,"<br />");echo $intext;
?>