return问题
class car{
public $name;
public $carage;
private $brithday;
public function getname(){
return $this->name;
}
}
$car1 = new car;
$car1->name="jz";
$car1->getname();
为什么无法输出值,也没有报错
class car{
public $name;
public $carage;
private $brithday;
public function getname(){
return $this->name;
}
}
$car1 = new car;
$car1->name="jz";
$car1->getname();
为什么无法输出值,也没有报错
2019-07-12
举报