【发布时间】:2011-04-08 11:28:23
【问题描述】:
我写了一个小类来存储全局变量/函数。我的问题是 - 脚本完成后是否有必要销毁类对象? 还是 PHP 会销毁该对象本身?
这是我的代码:
$web=new c_web("myWeb");
$web->loadTemplate("/!framework/admin/template.htm");
$web->doStuff();
// script has finished - destroying required here?
如果我需要销毁它,我该怎么做?
【问题讨论】: