Re: New to PHP question

From: Date: Wed, 28 Jan 2009 19:13:42 +0000
Subject: Re: New to PHP question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-287287@lists.php.net to get a copy of this message
Don Collier wrote: > First, when I use the \n and run the script from the command line it > works great. When I run the same code in a browser it does not put > the newline in and the text runs together. I know that I can use > <br/> to do the same thing, but why is it this way? That's how HTML works. > The second question is closely related to the first. When formatting > text using printf the padding works great when running from the > command line but not at all when in a browser. Same answer. /Per Jessen, Zürich

« previous php.general (#287287) next »