class Truck extends Car {
public function speedUp() {
parent::speedUp();
$this->speed += 50;
return $this->speed;
}
}
public function speedUp() {
parent::speedUp();
$this->speed += 50;
return $this->speed;
}
}
2016-05-23
已采纳回答 / SapereAudor
print_r()可以把字符串和数字简单地打印出来,而数组则以括起来的键和值得列表形式显示,并以Array开头。如, $a = array('name' => 'Fred', 'age' => '15', 'wife' => 'Wilma');print_r($a);Output: Array{ [name] => Fred [age] => 15 [wife] => Wilma}对象也一样。如, class P { var $name = 'nat'...
2016-05-23