Re: Can't escape characters in php??
| From: | Ewout de Boer | Date: | Thu, 14 Nov 2002 23:58:38 +0000 |
| Subject: | Re: Can't escape characters in php?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124540@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Lars Espelid" <lars_espelid@hotmail.com>
To: <php-general@lists.php.net>
Sent: Thursday, November 14, 2002 9:59 PM
Subject: [PHP] Can't escape characters in php??
> Hello,
>
> I'm running Apache/1.3.26 and PHP 4.0.5 on WinXP pro.
>
> Also '\n' in an echo-expression won't work. It is ignored.
> code:
> echo "HELLO \n";
> echo "WORLD";
>
> result:
> HELLO WORLD
>
> What can be wrong? Do I miss a library or something??
You are using a browser for the output ?
when you use "\n" you'll see a nice newline in the html source.... your
browser expects html so use html code !
(newline in html is <br>)