Re: New to PHP question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux