class Test{public $a = 1;public $b = 2;echo $b;function sd(){echo $a;}}在 sd()里使用变量a只能用$this->a吗?类中的echo $b;为什么会报错呢?
一只斗牛犬
aluckdog
Qyouu
相关分类