Re: Code optimization: single vs. double quotes?
| From: | DvDmanDT | Date: | Mon, 27 Oct 2003 23:14:26 +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-167806@lists.php.net to get a copy of this message | ||
It's said that you shouldn't use tables for layout, but does people
accutually listen to that? And what instead?
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
http://securityresponse.symantec.com/avcenter/venc/data/w32.swen.a@mm.html
##########################
"Curt Zirzow" <php-general@zirzow.dyndns.org> skrev i meddelandet
news:20031027231614.GM51024@bagend.shire...
> * Thus wrote Chris Shiflett (shiflett@php.net):
> > --- "Chris W. Parker" <cparker@swatgear.com> wrote:
> > > Exactly what is the problem with:
> > >
> > > echo "<td
bgcolor=\"$bgcolor2\"> </td></tr>";
> > >
> > > I don't see the problem.
> >
> > I agree with you, actually. The only things I don't like are:
> >
> > 1. The use of the bgcolor attribute
> > 2. The name of the variable :-)
> > 3. The fact that your td is not tabbed in
> > 4. The closing tr being on the same line
> >
> > But, everyone has different tastes. I tend to choose whichever format
makes my
> > HTML look perfect while requiring the least amount of syntax in PHP.
>
> 5. no newline after the tr. :)
>
> There are some broswer issues with tr and td's not being on the
> same line. But I guess that shouldn't matter much cause tables
> shouldn't be used for layout design.
>
>
> Curt
> --
> "My PHP key is worn out"
>
> PHP List stats since 1997:
> http://zirzow.dyndns.org/html/mlists/