Re: Code optimization: single vs. double quotes?

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

« previous php.general (#167800) next »