Re: Code optimization: single vs. double quotes?
| From: | Robert Cummings | Date: | Fri, 24 Oct 2003 16:08:34 +0000 |
| Subject: | Re: Code optimization: single vs. double quotes? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167446@lists.php.net to get a copy of this message | ||
On Fri, 2003-10-24 at 12:03, Marek Kilimajer wrote:
> Robert Cummings wrote:
> >>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.
>
> Single quotes are valid in html, though not in xhtml.
Whoops my bad, for some reason I saw those single quotes as string
delimiters, which really makes no sense on my part at all. I'm claiming
the "just woke up" excuse :)
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. |
`------------------------------------------------------------'