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

From: Date: Mon, 27 Oct 2003 22:39:27 +0000
Subject: RE: [PHP] Code optimization: single vs. double quotes?
Groups: php.general 
Request: Send a blank email to php-general+get-167801@lists.php.net to get a copy of this message
Chris Shiflett <mailto:shiflett@php.net> on Monday, October 27, 2003 2:30 PM said: > --- Justin French <justin@indent.com.au> wrote: >> a) echo "<td >> bgcolor='{$bgcolor2}'>&nbsp;</td></tr>"; > > The curly braces are superfluous here, since you are using double > quotes. I'm not sure if you like having them there, but I think that > less syntax yields a simpler and cleaner appearance. > > However, I hate single quotes around HTML attributes, so I can't > bring myself to use that format anyway. :-) +1 -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/

« previous php.general (#167801) next »