Posted by Sanders Kaufman on 11/14/07 17:35
"The Natural Philosopher" <a@b.c> wrote in message
news:1195055646.25647.2@demeter.uk.clara.net...
> Sanders Kaufman wrote:
>> You gotta enclose complex variables like "$data['id']" in curly-brackets
>> when you use them inside a string like that.
>>
>> Thus, it should be:
>> "<p><a href='/details.php?id={$data['id']}'>{$data['name']}</a></p>\n";
>
> or use backlslashes...
Wouldn't that escape the $, rather than enclose the variable?
Navigation:
[Reply to this message]
|