Re: About "\n"
| From: | Michael Purdy | Date: | Wed, 29 Dec 2004 11:15:26 +0000 |
| Subject: | Re: About "\n" | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25201@lists.php.net to get a copy of this message | ||
Michael
"\n" will not be recognised by your browser. Remember it expects to see
HTML and not DOS style new line markers.
Try
echo '<p>'; or
echo '<br>';
instead
Mike
----- Original Message -----
From: <michael@skys.com.cn>
To: <php-windows@lists.php.net>
Sent: Wednesday, December 29, 2004 7:36 PM
Subject: [PHP-WIN] About "\n"
> Hi
>
> I'm new in php, I find the "\n" dosen't work in my machine
>
> <HTML>
> <HEAD>
> <TITLE>
> <?php
> echo "Hello World!";
> ?>
> </TITLE>
> </HEAD>
> <BODY>
> <H1>
> First PHP page
> </H1>
> <?php
> echo "Hello World!";
> echo "\n";
> echo "Hello World!";
> ?>
>
>
> </BODY>
> </HTML>
>
>
> The result is
> First PHP page
> Hello World! Hello World!
>
> any suggestion??
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>