Re: Code optimization: single vs. double quotes?
| From: | olinux | Date: | Fri, 24 Oct 2003 15:22:29 +0000 |
| Subject: | Re: Code optimization: single vs. double quotes? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167439@lists.php.net to get a copy of this message | ||
> No special chars or vars:
> echo '<td bgcolor=\'#ffffff\'> </td></tr>';
>
> For cases with vars and special chars, I think these
> look terrible:
> echo '<td
> bgcolor="'.$bgcolor2.'"> </td></tr>';
I'm a fan of this style - works great with syntax
highlighting in homesite.
olinux
> echo "<td bgcolor=\"$bgcolor2\"> </td></tr>";
>
> Whereas this is clear and easy to work with:
> echo "<td bgcolor='{$bgcolor2}'> </td></tr>";
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com