【发布时间】:2012-06-21 07:35:57
【问题描述】:
我有问题
class a
{
public $aa=1;
public function dd(){
$this->aa = 2;
}
public function gg(){
echo $this->aa ;
}
}
go方法echo $this->aa怎么还是'1'?
【问题讨论】:
-
不要使用 do、for、while 等作为函数名好友,但要接受答案。 :)
标签: php class methods attributes