Re: \n being output as a space
| From: | Matthew Ballard | Date: | Mon, 04 Dec 2000 01:05:08 +0000 |
| Subject: | Re: \n being output as a space | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28490@lists.php.net to get a copy of this message | ||
Don't forget that you are outputting HTML, not text. A \n is a carriage return, and if you looked at the source code, there would be a line break there, but carriage generally don't have any effect when it comes to HTML code, which requires a <br> for a line break, or <p> for a space between the lines.
Matthew Ballard
At 01:58 PM 12/4/2000 +1300, you wrote:
I am having a problem with the following code:echo "\nUploaded $upload_name to ftp.godzone.net.nz as$newfilename"; The output does not appear on a newline, instead there is a space between this line and the previous line, all output on the same line. In other words it looks like the \n was rendered as a space character. User agent is IE5.01, Windows 95.