Re: Weird html - No "real" <cr>
| From: | Gustav Wiberg | Date: | Sat, 17 Dec 2005 07:22:37 +0000 |
| Subject: | Re: Weird html - No "real" <cr> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227573@lists.php.net to get a copy of this message | ||
Ok, thanx!:-)
/G
----- Original Message ----- From: "Brady Mitchell" <bradym@ext.usu.edu>
To: <php-general@lists.php.net>
Sent: Saturday, December 17, 2005 12:35 AM
Subject: RE: [PHP] Weird html - No "real" <cr>
Hi Yes, but I assume that echo "<hr>Kontroll rad i textfil:$rowsInTextFile av $totalRowsInTextFile<br>"; would render a <newline> ? /GEcho does not automatically add a newline, you would have to use \n to get newlines with the echo statement: echo "<hr>Kontroll rad i textfil:$rowsInTextFile av > $totalRowsInTextFile<br>"; Will display the line break in the webpage as expected, but to get the source code displayed to have the line break you would need to use: echo "<hr>Kontroll rad i textfil:$rowsInTextFile av > $totalRowsInTextFile<br>\n"; Brady -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php