Re: [PHP] Code optimization: single vs. double quotes?
From: Justin French (justin_at_indent.com.au)
Date: 10/27/03
- Next message: Cpt John W. Holmes: "Re: [PHP] php temp table question (for mysql)"
- Previous message: Luis Lebron: "RE: [PHP] Re: preg match compilation error (Resolved)"
- In reply to: Chris W. Parker: "RE: [PHP] Code optimization: single vs. double quotes?"
- Next in thread: Chris Shiflett: "Re: [PHP] Code optimization: single vs. double quotes?"
- Reply: Chris Shiflett: "Re: [PHP] Code optimization: single vs. double quotes?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Oct 2003 09:11:45 +1100 To: "Chris W. Parker" <cparker@swatgear.com>
On Tuesday, October 28, 2003, at 04:29 AM, Chris W. Parker wrote:
> olinux <mailto:olnx@yahoo.com>
> on Friday, October 24, 2003 9:41 PM said:
>
>>>> echo "<td bgcolor=\"$bgcolor2\"> </td></tr>";
>>
>> uggh - apparently you've never had to redesign a
>> site/application that uses this style. This is one
>> table cell, but when you work this style through a big
>> app, it's a huge pain (waste of time) to make any
>> changes.
>
> Apparently. What do you recommend?
You have plenty of options... a & b would be my preference:
a) echo "<td bgcolor='{$bgcolor2}'> </td></tr>";
b) echo "<td bgcolor='$bgcolor2'> </td></tr>";
c) echo '<td bgcolor="'.$bgcolor2.'"> </td></tr>';
d) echo "<td bgcolor='".$bgcolor2."'> </td></tr>";
Justin French
- Next message: Cpt John W. Holmes: "Re: [PHP] php temp table question (for mysql)"
- Previous message: Luis Lebron: "RE: [PHP] Re: preg match compilation error (Resolved)"
- In reply to: Chris W. Parker: "RE: [PHP] Code optimization: single vs. double quotes?"
- Next in thread: Chris Shiflett: "Re: [PHP] Code optimization: single vs. double quotes?"
- Reply: Chris Shiflett: "Re: [PHP] Code optimization: single vs. double quotes?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|