Re: \n \t don't work!!!
| From: | Steve Buehler | Date: | Mon, 13 Oct 2003 13:01:45 +0000 |
| Subject: | Re: \n \t don't work!!! | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165976@lists.php.net to get a copy of this message | ||
To give tabs in html, you might want to try using instead of \t
Steve
At 06:57 AM 10/13/2003, you wrote:
Wang Feng wrote:Simple: <?php echo ("this is the simplest, an SGML processing instruction "); echo "This spans multiple lines. The newlines will be output as well"; echo "This spans multiple lines. The newlines will be output as well."; ?> In html you cannot use newlines for formating, use <br> if you need newline. You can use <pre> tag for preformated text however. So, what's the problem here? cheers, feng -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- This message has been scanned for viruses and dangerous content by the MailScanner at ow4, and is believed to be clean.The page source shows: ************************************ <html><body></body></html> ************************************The problem might be right here --------------+(closing html tag) |<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> ******************************************<html> |