Re: Code optimization: single vs. double quotes?
| From: | Robert Cummings | Date: | Fri, 24 Oct 2003 15:37:26 +0000 |
| Subject: | Re: Code optimization: single vs. double quotes? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167441@lists.php.net to get a copy of this message | ||
On Fri, 2003-10-24 at 03:57, Justin French wrote:
> On Friday, October 24, 2003, at 10:43 AM, Shawn McKenzie wrote:
>
> [--CLIPPETY CLIP CLIP--]
>
> Whereas this is clear and easy to work with:
> echo "<td bgcolor='{$bgcolor2}'> </td></tr>";
>
Unless your $bgcolor2 variable has double quotes in it, then the above
is poor HTML style. I don't think omission of double quotes has been
considered valid HTML since version 3 (admittedly though, as long as
they let it render, people will use it :)
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'