Re: Mutiline read as Sigle Line!

From: Date: Thu, 23 Aug 2001 08:37:17 +0000
Subject: Re: Mutiline read as Sigle Line!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64070@lists.php.net to get a copy of this message
Jack wrote: > I want the browser could display exactly the same as the user input! even > the lines and format! For a browser to display line breaks, a "new line" isn't enough, it needs a <BR> tag. there is a function called nl2br() [new-line-to-break] which does this: $text = [your file read in]; $htmlText = nl2br($text) or something like that (haven't done it in ages!!) Justin French

« previous php.general (#64070) next »