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:
Overloading Classes in PHP 5
July 26, 2006 @ 05:53:51

DevShed is wrapping up their "Overloading in PHP" series today with this last part - "Overloading Classes in PHP5".

It's time to move on and continue exploring the subject, since there are still a few additional topics that need to be covered. So, what's comes next now? All right, in this last part of the series, I'll be explaining how to overload classes specifically in PHP 5, which offers native support for overloading class members and methods, without having to explicitly call the PHP built-in "overload()" function.

They look first at using the __get method to replace __set in their previous code to save data out to a file. Then, to illustrate even more enhanced functionality, they implement __get and __set at the same time in a class, using them to grab values and set values to properties. Finally, they throw __call into the mix, showing how to overload method calls too.

0 comments voice your opinion now!
overloading part3 tutorial classes php5 get set call overloading part3 tutorial classes php5 get set call


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Crop and Resize Images with ImageMagick

Derick Rethans' Blog: Using OpenStreetMap tiles with Flickr

Refulz.com: Special characters in Regular Expressions - Part 1

DevShed: Paginating Result Sets for a Search Engine Built with MySQL and PHP 5

Symfony Blog: The "Practical symfony" book is now also available for Doctrine


Community Events











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


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

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