News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



DevShed:
Executing Destructors Manually in PHP 5
0 comments :: posted Wednesday February 13, 2008 @ 11:27:00
voice your opinion now!

Finishing off their series on destructors in PHP5 applications today, DevShed has posted this new tutorial showing how to manually run the destructors of your class (in case there's ever a need).

In this final tutorial of the series I'm going to show you how to manually trigger a destructor, and in addition you'll learn how to emulate the behavior of this magic method when using PHP 4.

They not only talk about how to call the destructor manually but they also show how to call multiple destructors at the same time to destroy lots of objects at once. And, as promised, they include a method for being able to use a destructor-like bit of functionality in a PHP4 app as well.

tagged with: php5 destructor execute manual php4 emulate multiple



releases mysql cakephp PEAR zendframework package book release job pecl PHP5 database ajax framework developer conference application zend code security

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework