Date: 10/14/02
- Next message: smclean <email protected>: "[PHP-DOC] #19912 [NEW]: odbc_execute help page function 'prototype' shows incorrect return value"
- Previous message: Gabor Hojtsy: "Re: [PHP-DOC] ftp_async_ functions"
- In reply to: Shaun: "[PHP-DOC] Please Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: smclean <email protected>: "[PHP-DOC] #19912 [NEW]: odbc_execute help page function 'prototype' shows incorrect return value"
- Previous message: Gabor Hojtsy: "Re: [PHP-DOC] ftp_async_ functions"
- In reply to: Shaun: "[PHP-DOC] Please Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

