RE: [PHP] no newline after "?>" in the resulting HTML
| From: | Brady Mitchell | Date: | Sat, 18 Mar 2006 19:06:10 +0000 |
| Subject: | RE: [PHP] no newline after "?>" in the resulting HTML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232189@lists.php.net to get a copy of this message | ||
> Why there is no newline afer " <p>Hello World</p>" ?
> Is it a PHP bug or the tutorial should be updated?
The tutorial is fine.
The sample code mentioned:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
Contains a line break after the <p>Hello World</p> is echoed .
Check your code, if you don't have that line break, PHP is not going to create it for you.
Brady