Re: About "\n"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
To: <php-windows@xxxxxxxxxxxxx>
Sent: Wednesday, December 29, 2004 7:36 PM
Subject:  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
>
>

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux