News Feed
Jobs Feed
Sections




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

DevShed:
The Isset and Unset Magic Functions in PHP 5
June 02, 2009 @ 10:25:50

DevShed continues their series on the "magic functions" in PHP with this new tutorial, a closer look at the __isset and __unset functions.

Overloading properties is only one of the many useful things that can be accomplished with magic functions. It's also possible to perform additional tasks when working with the "isset()" and "unset()" PHP functions, but in this case by using another set of complementary functions, called "__isset()" and "__unset()" respectively.

In the examples he shows how to use the functions to see if a property has been set or to unset it and remove it from the object (could be helpful when working with private class properties).

0 comments voice your opinion now!
magicfunction unset isset tutorial


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Message Queues: Comparing Beanstalkd, IronMQ and Amazon SQS

Developer.com: SQLite: The Sensible Database Solution

IBM developerWorks: Devise Web 2.0 applications with PHP and DHTML (Part 1)

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

The Bakery: Three New Components/Tutorials - Lightroom, DboSource & SMF


Community Events











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


security podcast application introduction package code overview opinion facebook framework hack component symfony2 composer performance unittest install hhvm language release

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