Re: Please Help
| From: | Philip Olson | Date: | Mon, 14 Oct 2002 17:40:17 +0000 |
| Subject: | Re: Please Help | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969349145@lists.php.net to get a copy of this message | ||
Please ask general php questions towards the
php-general mailing list.
In short, it's because you used single quotes.
'$foo' will literally print $foo, not the value.
Same for \n. See:
http://www.php.net/manual/en/language.types.string.php
Regards,
Philip
On Fri, 11 Oct 2002, Shaun wrote:
> Hi,
>
> I`m using php 4.1 with apache on Windows2000 server.
> When i open the following php file in my browser
>
> <html>
> <body>
> <?php print('hallo world\n');?>
> </body>
> </html>
>
> the output in my browser is
>
> hello world\n
>
> why did the browser not interpret the newline character ?
>
>
>
> --
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>