Re: \n \t don't work!!!

From: Date: Mon, 13 Oct 2003 11:39:16 +0000
Subject: Re: \n \t don't work!!!
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-165956@lists.php.net to get a copy of this message
> They do work but you will not see that in the rendered html page (in a > browser). Have a look at the source of the produced page and you will see > the linebreaks. The page source shows: ************************************ <html><body></body></html> ************************************ > I suppose your manual was not intending on making html pages, or it was a > very lousy one. I do want to just make a html page. The following is my source code, and what I expect is to see the new lines when the \n appears, ok? ***************************************** <html> <head><title>Hello World Program</title></html> <body> <?php echo ("this is the simplest, an SGML processing instruction\n"); echo "This spans multiple lines. The newlines will be output as well"; echo "This spans\nmultiple lines. The newlines will be\noutput as well."; ?> </body> </html> ****************************************** So, what's the problem here? cheers, feng

« previous php.general (#165956) next »