News Feed
Jobs Feed
Sections




News Archive
DevShed:
Keeping Track of Objects when Using Destructors in PHP 5
January 30, 2008 @ 11:19:00

Devshed continues their series looking at the use of destructors in PHP5 applications with part three, a method for keeping track of objects you've created during execution.

In this third part of the series, I'm going to show you how to retrieve some useful information about a specific object, including its properties and methods, prior to its being destroyed by the PHP parser via the implementation of a simple destructor.

Their new user class extracts the details about each of the objects right before they're destroyed via a call to get_object_vars and a loop to display the property and its value.

0 comments voice your opinion now!
php5 destructor object track property


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: PHP and your domain model with Doctrine ORM

Christopher Jones' Blog: PECL OCI8 1.2.5 Available

Aaron Wormus' Blog: WS02 at Zend Conf

Andrew Nacin's Blog: On PHP

Phil Sturgeon: PHP 6: Pissing in the Wind


Community Events











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


conference podcast interview introduction functional opinion symfony2 series phpunit database development framework release language community usergroup zendframework2 example testing rest

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