want to join us? register, it's easy | help

browse by tag: __set_state

sort by

newest, oldest, most popular

category icon

The Magic __set_state Method in PHP5

in PHP added by goodphptutorials, on 10/9/2006 __set_state advanced tutorials magic methods methods php5 set_state

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.

comment save report