note 3710 deleted from ereg_replace by ronabop
| From: | ronabop@php.net | Date: | Sun, 19 Nov 2000 03:20:37 +0000 |
| Subject: | note 3710 deleted from ereg_replace by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7872@lists.php.net to get a copy of this message | ||
in order to search for a newline you have to search for the ascii value which is 10 so...
$text = ereg_replace(10, "<br>", $text)
this will replace all newlines with the html equivalent.