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

From: Date: Mon, 27 Oct 2003 22:23:49 +0000
Subject: RE: [PHP] Code optimization: single vs. double quotes?
Groups: php.general 
Request: Send a blank email to php-general+get-167799@lists.php.net to get a copy of this message
Justin French <mailto:justin@indent.com.au> on Monday, October 27, 2003 2:12 PM said: > a) echo "<td bgcolor='{$bgcolor2}'>&nbsp;</td></tr>"; > b) echo "<td bgcolor='$bgcolor2'>&nbsp;</td></tr>"; > c) echo '<td > bgcolor="'.$bgcolor2.'">&nbsp;</td></tr>'; > d) echo "<td > bgcolor='".$bgcolor2."'>&nbsp;</td></tr>"; Exactly what is the problem with: echo "<td bgcolor=\"$bgcolor2\">&nbsp;</td></tr>"; I don't see the problem. Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/

« previous php.general (#167799) next »