News Feed
Jobs Feed
Sections

Recent Jobs

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



Similar Posts

DevShed: Protecting PHP 5 Class Data with Member Visibility

HowToBoard.com: Installing php-5.2.0 from srpm on CentOS 4

Gregory Szorc's Blog: So Many Untapped PHP Features

Michael Kimsal's Blog: PHP Prediction

DevShed: Creating a MySQL Abstraction Layer with Bridge Classes in PHP 5


Community Events







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


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

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