"; $this->name = "MyDestructableClass"; } function __destruct() { echo '析构函数','
'; echo "销毁 " . $this->name . "\n"; } } $obj = new MyDestructableClass(); echo '

PHP 基础教程 - 简单教程(www.twle.cn)

';