PHP动态方法或者属性的问题及解决

问题
$this->$name[$key] = $value;

解决
$this->{$name[$key]} = $value;

用PHP特有的花括号解决.
posted @ 2009-04-22 21:12  已注销00021  阅读(158)  评论(0)    收藏  举报