Re: Newlines to <BR>
| From: | Dragos Roua | Date: | Mon, 18 Sep 2000 17:44:37 +0000 |
| Subject: | Re: Newlines to <BR> | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17165@lists.php.net to get a copy of this message | ||
> Hello, people!
> An easy task.... how do I convert in an string context new lines
> (\n) to <br>'s?
> I'd tried "strtr ($string, "\n", "<br>")" but it
> didn't worked....
>
>
nl2br();
hth
--
Dragos Roua
Mirabilis Media,
http://www.portal.ro http://www.net-info.ro
http://www.analyser.ro http://www.adserver.ro
http://www.culinar.ro http://www.cartipostale.ro