成员属性在两个方法之间无法共用
class a {
public $a=0;
public fucntion ax(){
$this->a='111';
}
public fucntion bx(){
echo $this->a;
}
}
class a {
public $a=0;
public function a(){
return $this->a='111';
}
public function bx(){
echo $this->a();
}
}
$p = new a();
$p->bx();