This is a discussion on RE: [PHP] Code optimization: single vs. double quotes? within the PHP General forums, part of the PHP Programming Forums category; Justin French <mailto:justin@indent.com.au> on Friday, October 24, 2003 12:57 AM said: > I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Justin French <mailto:justin@indent.com.au>
on Friday, October 24, 2003 12:57 AM said: > I also adapted wrapping all variables in {parenthesis} so that PHP has > no chance of being confused heh... actually those are {curly braces} and these are (parenthesis). > No special chars or vars: > echo '<td bgcolor=\'#ffffff\'> </td></tr>'; Even better (and valid HTML too!): echo '<td bgcolor="#ffffff"> </td></tr>'; I've always been a big fan of: > echo "<td bgcolor=\"$bgcolor2\"> </td></tr>"; But this has been an interesting topic so I might just start changing my style. Chris. p.s. If you're wondering how heredoc fits into all of this, it's really slow. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/ |
|
|||
|
--- "Chris W. Parker" <cparker@swatgear.com> wrote:
> > I've always been a big fan of: > > > echo "<td bgcolor=\"$bgcolor2\"> </td></tr>"; > uggh - apparently you've never had to redesign a site/application that uses this style. This is one table cell, but when you work this style through a big app, it's a huge pain (waste of time) to make any changes. olinux __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |