如果在
class Truck extends Car{ public function speedUp(){ $this->speed=parent::speedUp()+50; return $this->speed; } }
加return和不加有什么区别??
数据分析师2017-09-30 23:46:14
When is return used? -PHP Chinese website Q&A-When is return used? -PHP Chinese website Q&A
Please watch and learn.