News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Executing Destructors Manually in PHP 5
February 13, 2008 @ 11:27:00

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.

0 comments voice your opinion now!
php5 destructor execute manual php4 emulate multiple


blog comments powered by Disqus

Similar Posts

Arnold Daniels' Blog: Wrong PHP prediction: you donít need to patch PHP to run multiple versions

DevShed: Validating Incoming Data by Using Polymorphism with Objects in PHP 5

Pierre-Alain Joye's Blog: Initial PHP4 support for htscanner

Elizabeth Smith's Blog: How to Compile PHP5.2 and PHP-GTK2 on Windows using Visual C++ Express

Alison Holloway's Blog: A new version of the Underground PHP and Oracle Manual coming soon


Community Events





Don't see your event here?
Let us know!


composer language tool list series library voicesoftheelephpant release version framework podcast community laravel symfony opinion artisanfiles conference introduction security interview

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