<?php
class Car {
//增加构造函数与析构函数
function _construct(){
print "构造函数被调用\n";
}
function _destruct(){
print "析构函数被调用\n";
$car = new Car();
楼上正解
_construct()和_destruct()是两个下划线