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

Reply via email to