Re: /n not working

From: Date: Sat, 26 Jul 2003 17:06:03 +0000
Subject: Re: /n not working
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-157018@lists.php.net to get a copy of this message
* Thus wrote John W. Holmes (holmes072000@charter.net): > Thomas Hochstetter wrote: > > > >$text = "The quick brown fox jumped over the lazy dog."; > >$newtext = wordwrap($text, 20); > > > >echo "$newtext\n"; > > [...] > > HTML does not render newlines. You need to use <br />. View the source > of this code in your browser and you'll see everything is on it's own line. > Yes the documentation is a little misleading. I'm in the process of getting that changed in the documentation. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#157018) next »