RE: [PHP] Newlines to <BR>
| From: | Chad Day | Date: | Mon, 18 Sep 2000 17:48:02 +0000 |
| Subject: | RE: [PHP] Newlines to <BR> | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17169@lists.php.net to get a copy of this message | ||
nl2br();
http://www.zend.com/manual/function.nl2br.php
-----Original Message-----
From: Marcio Ghiraldelli [mailto:fatfox@adaptanet.com.br]
Sent: Monday, September 18, 2000 1:36 PM
To: php-general@lists.php.net
Subject: [PHP] Newlines to <BR>
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....
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net