You are here: Re: [PHP] Using the echo tag... « PHP « IT news, forums, messages
Re: [PHP] Using the echo tag...

Posted by Ben Ramsey on 10/19/59 11:31

On 11/9/05 9:51 AM, Paul Williams wrote:
> Alright cool that one worked. Do I have to include the curly braces in
> all calls to variables or just the superglobals?

It's not a superglobal issue; it's an array issue -- or, rather, it's an
issue with using quotation marks. You could have also done it this way:

<?php

print <<<EOF

<HTML>
$_SERVER[PHP_SELF]
</HTML>
EOF;

?>

Personally, I put curly braces around all interpolated variables because
it makes it easier for me to read and see the variables, but this is
really up to user preference.

--
Ben Ramsey
http://benramsey.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация