RE: [PHP-WIN] Help on \t \r \n
| From: | Davy Obdam | Date: | Sun, 03 Nov 2002 18:13:33 +0000 |
| Subject: | RE: [PHP-WIN] Help on \t \r \n | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16700@lists.php.net to get a copy of this message | ||
Hi dee
> Can anyone help me on this very simple problem, I'm a newbie,
> but the problem seems so simple and it's buggering me.
>
> I have 423 xp version installed. When trying out how to
> display any of the escaped characters e.g.
>
> echo("<p>blah blah..... \n");
> echo("more blahs...");
Use both <br /> and \n in this case. <br /> is a linebreak in HTML and
\n is a linebreak in your code, makes your html code more readable.
<?php
echo("<p>blah blah..... <br />\n");
echo("more blahs...</p>");
?>
>
> in an HTML file, with IE6, I get
>
> blah blah..... more blahs...
>
> why? -- shall I just forget it and use <br />?
>
If you want your code to be more readable instead of all the html codes
on one really big line, use dont forget \n
:-)
Best regards,
Davy Obdam
mailto:info@davyobdam.com