慕标0178439
2019-06-28 18:55
class Car {
public $name = 123;
public function speedUp() {
$this->name += 123;
}
}
$car = new Car();
$car->speedUp();
echo $this->name;
最后一行 echo $car->name;
最后一行。。this??
PHP进阶篇
181959 学习 · 2668 问题
相似问题