Re: php & html integration
| From: | tedd | Date: | Fri, 15 May 2009 13:38:06 +0000 |
| Subject: | Re: php & html integration | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-292612@lists.php.net to get a copy of this message | ||
At 8:41 AM -0400 5/15/09, Robert Cummings wrote:
On Fri, 2009-05-15 at 05:42 -0400, Robert Cummings wrote: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.comOn 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.