Re: Code optimization: single vs. double quotes?

From: Date: Fri, 24 Oct 2003 15:22:29 +0000
Subject: Re: Code optimization: single vs. double quotes?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167439@lists.php.net to get a copy of this message
> No special chars or vars: > echo '<td bgcolor=\'#ffffff\'>&nbsp;</td></tr>'; > > For cases with vars and special chars, I think these > look terrible: > echo '<td > bgcolor="'.$bgcolor2.'">&nbsp;</td></tr>'; I'm a fan of this style - works great with syntax highlighting in homesite. olinux > echo "<td bgcolor=\"$bgcolor2\">&nbsp;</td></tr>"; > > Whereas this is clear and easy to work with: > echo "<td bgcolor='{$bgcolor2}'>&nbsp;</td></tr>"; __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com

« previous php.general (#167439) next »