Re: Code optimization: single vs. double quotes?
| From: | Marek Kilimajer | Date: | Fri, 24 Oct 2003 16:03:56 +0000 |
| Subject: | Re: Code optimization: single vs. double quotes? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167445@lists.php.net to get a copy of this message | ||
Robert Cummings wrote:
Single quotes are valid in html, though not in xhtml. Marekecho "<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.