Re: Code optimization: single vs. double quotes?

From: Date: Mon, 27 Oct 2003 23:16:14 +0000
Subject: Re: Code optimization: single vs. double quotes?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-167805@lists.php.net to get a copy of this message
* Thus wrote Chris Shiflett (shiflett@php.net): > --- "Chris W. Parker" <cparker@swatgear.com> wrote: > > Exactly what is the problem with: > > > > echo "<td > > bgcolor=\"$bgcolor2\">&nbsp;</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/

« previous php.general (#167805) next »