Line breaks in PHP

From: Date: Thu, 29 Mar 2001 09:36:45 +0000
Subject: Line breaks in PHP
Groups: php.general 
Request: Send a blank email to php-general+get-46052@lists.php.net to get a copy of this message
**************************************************** nl2br (PHP 3, PHP 4 ) nl2br -- Inserts HTML line breaks before all newlines in a string Description string nl2br (string string) Returns string with '<br />' inserted before all newlines *************************************************** RTM. Sometimes it helps! :-) > ----- Original Message ----- > From: Matt Davis <matt@roundyourway.co.uk> > To: Php Mailing List <php-general@lists.php.net> > Sent: Thursday, March 29, 2001 11:29 AM > Subject: [PHP] Line breaks in PHP > > > > I have a form that edits the text on a web page by putting the data into > a > > db and then outputting to the webpage when it is called. When I enter my > > text into my form I use the return key to start new lines, but when the > text > > appears on my webpage it has no line breaks so the text just wraps to the > > width of the page. > > > > Is there any way of PHP picking up these line breaks so that the text will > > be formatted on my web page as it was on my form. > > > > Thanks > > > > Matt. > > > > > > -- > > 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 > > > > >

« previous php.general (#46052) next »