NYCPHP Meetup

[nycphp-talk] variable variables in heredoc string

Marc Antony Vose suzerain at suzerain.com
Sat Feb 18 13:40:02 EST 2006


hi there:

this question seems so elementary, yet i can't seems to figure out 
the right combination of curly braces and whatnot.

if i have a variable variable such as:

${$uc.'content_width'} = 170;


How can I use it inside a heredoc assignment?


// start the content
${$uc.'content'} = <<< ENDENDEND


ENDENDEND;


Thanks,

-- 
Marc Antony Vose
http://www.suzerain.com/

Life is a sexually transmitted disease with a 100% mortality rate.
-- David Shaw



More information about the talk mailing list