Re: alternatively
| From: | Richard Lynch | Date: | Mon, 02 Oct 2006 21:02:57 +0000 |
| Subject: | Re: alternatively | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242492@lists.php.net to get a copy of this message | ||
On Mon, October 2, 2006 9:19 am, Jochem Maas wrote:
> David Tulloh wrote:
>> $mail_body .= "... Title: $row[title] </font>";
>
> does that actually work? not that I care - I still consider it wrong.
It's a Documented Feature...
How wrong can it be?...
[shrug]
Though I confess I've got more than a few nits to pick with documented
features myself, so I'll be the first to admit I'm the pot calling the
kettle black.
I gotta say, though, that adding the {} around it just looks plain
messy to me, and flip-flopping in/out of a string with a bunch of
concat operators does not appeal either, for the same reason.
If "...$row[title]..." is "just wrong" then I'd rather see this before
the alternatives above:
$title = $row['title'];
"...$title..."
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?