News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



php|tek 2008 Ticker

[our feed] [hashtags feed]

DevShed:
Keeping Track of Objects when Using Destructors in PHP 5
0 comments :: posted Wednesday January 30, 2008 @ 11:19:00
voice your opinion now!

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.

tagged with: php5 destructor object track property



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

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