RE: [PHP] Code optimization: single vs. double quotes?

From: Date: Mon, 27 Oct 2003 22:58:39 +0000
Subject: RE: [PHP] Code optimization: single vs. double quotes?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167804@lists.php.net to get a copy of this message
--- "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. Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp

« previous php.general (#167804) next »