Object Destruction in PHP5
| From: | Arjun Jain | Date: | Wed, 16 Mar 2005 08:52:58 +0000 |
| Subject: | Object Destruction in PHP5 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-210890@lists.php.net to get a copy of this message | ||
Hi everyone,
When is the object destroyed which is created in a PHP5 script?
Suppose i say:
<?php
$m = new MyClass;
$m->fun1('abcd');
$m->fun2();
?>
Then why is the destructor not called when my script ends? Can it be
called explicitly? If yes, how?
Thanking you in advance,
Regards
aj
--
-----------------------------------------------------------------
Arjun Jain, 7th Sem CSE, RVCE
http://arjun.notlong.com
Visit http://groups.yahoo.com/group/rvcelug/ <http://groups.yahoo.com/group/rvcelug/>
-----------------------------------------------------------------