News Feed
Sections




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

DevShed:
Implementing Destructors with Multiple Objects in PHP 5
January 23, 2008 @ 14:57:00

DevShed has posted part two in their series looking at the use of destructors in PHP5. This time they focus on their use with multiple objects inside of an application.

Destructors can be used in all sorts of clever ways in the context of a given PHP 5 application, mostly in those cases where it's necessary to keep track of the status of certain objects prior to their being destroyed by the PHP interpreter. In this second chapter you'll learn how to work simultaneously with multiple classes that concretely implement their respective destructors.

They revisit their previous example with a simple class that's then extended to allow the flexibility to call the same destructor on multiple instances.

0 comments voice your opinion now!
destructor class user data multiple tutorial


blog comments powered by Disqus

Similar Posts

DevShed: Handling Result Sets and More with PDO Objects in PHP 5

IBM developerWorks: Java and PHP technology on AIX - Integrate the Java business application w/ DB2

Refulz Blog: Traits in PHP 5.4 - Why we need Traits

Content with Style Blog: Deploying PHP applications with Vlad and SVN

PHPMaster.com: Mapping with Geocoder PHP and Leaflet.js


Community Events





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


interview mvc opinion laravel package symfony community voicesoftheelephpant composer library framework security version introduction release podcast language series tool update

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