Hi Andrea, On Fri, Jan 30, 2015 at 7:17 AM, Andrea Faulds <a...@ajf.me> wrote:
> I would expect that anything within ${} works the same as it does outside > it. Having $obj->${array[$key]} do something different to $key = > array[$key], $obj->${$key} would make no sense to me. Good point! I forgot about variable variable. PHP works as follows now. http://3v4l.org/dpbES Andrey, the reason why you are surprised is probably because of this // echo "${obj->var}"; // Syntax error Regards, -- Yasuo Ohgaki yohg...@ohgaki.net