RE: [PHP] Newbie's question about \n

From: Date: Mon, 22 Jul 2002 11:09:17 +0000
Subject: RE: [PHP] Newbie's question about \n
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108843@lists.php.net to get a copy of this message
If you check the source of your code you'll see that in source the text is in two lines. \n doesn't work as <br>, so this is about how HTML works, not plain text. Niklas -----Original Message----- From: KK Lee [mailto:kklee6@yahoo.com] Sent: 22. heinäkuuta 2002 14:01 To: php-general@lists.php.net Subject: [PHP] Newbie's question about \n Dear ALL, It seems that i have a very silly problem. I can't get the new line escape character to work. the following is my SIMPLE script and corresponding output. PHP script: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" > <html> <head> <title>TEST</title> </head> <body bgcolor="#ffffff"> <?php echo "this should be printed out:\n"; echo "this is a second line"; ?> </body> </html> Output in IE6: this should be printed out: this is a second line regards, KK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ########################################### This message has been scanned by F-Secure Anti-Virus for Internet Mail. For more information, connect to http://www.F-Secure.com/ ########################################### This message has been scanned by F-Secure Anti-Virus for Internet Mail. For more information, connect to http://www.F-Secure.com/

« previous php.general (#108843) next »