Re: php & html integration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 8:41 AM -0400 5/15/09, Robert Cummings wrote:
On Fri, 2009-05-15 at 05:42 -0400, Robert Cummings wrote:
 On Thu, 2009-05-14 at 17:24 -0700, Michael A. Peters wrote:
 > tedd wrote:
 >
 > >
 > > <h1>
 > > <?php echo("Hello World"); ?>
 > > </h1>
 > >
 > > and Hello World will be show as a H1 headline.
 > >
 > > Please note, the "()" seen in my use of echo is not necessary -- it's
 > > just another one of those things that I do that no one else does. It's
 > > not wrong, but it serves no purpose other than it looks good and makes
 > > sense *to me* YMMV.
 >
 > I do it that way as well.

 Me too... for require and include also.

Actually, I crossed mental threads there. I do echo without parenthesis
but use them on require and include.

Rob et al:

As Ron knows, both include() and echo() are language constructs and not functions. As such, parentheses are not needed around their arguments.

However, for sake of readability (mine) and consistency in style (again mine) I use parentheses for both. I would fine it disturbing to use parentheses for one and not the other.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux