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

php|architect:
The Magic __set_state Method
July 21, 2006 @ 07:03:00

On php|architect's A/R/T article repository today, there's this new tutorial centered around the use of the "magic" method __set_state in PHP5.

It is fairly self-evident how to use most of the magic methods of PHP 5. However, it is not quite so apparent how to use the __set_state method introduced in PHP 5.1. In this article, Peter lavin delves into this elusive magic method to show you how to use this gem in some really 'classy' object oriented PHP.

The author (Peter Lavin) talks first about what magic methods are and, specifically, what the __set_state method can do. He gives an example, comparing a normal usage of var_export to functionality using __set_state.

0 comments voice your opinion now!
magic method __set_state var_export tutorial magic method __set_state var_export tutorial


blog comments powered by Disqus

Similar Posts

IBM developerWorks: Use Ajax with PHP and DB2 9 - Xajax

DevShed: Introducing Static Members and Methods in PHP 5 (Part 1)

Zend Developer Zone: PHP and Java: Using Java Print Service with Zend Server Community Edition

Zend Developer Zone: 2 Beginners Guides I Wish I had when I Started with PHP

Michael Nitschinger's Blog: Playing with Composer and Lithium


Community Events











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


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

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