News Feed
Sections




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

DevShed:
Using Method Call Overloading in PHP 4
July 18, 2006 @ 12:44:36

DevShed has posted part two in the series they've worked up covering overloading classes inside of a PHP4 environment. In this edition (two of three) they focus on method call overloading, a step up from the previous property overloading.

This is part two of the series "Overloading classes in PHP." In three tutorials, this series teaches how to overload your classes in PHP 4 by using the "overload()" PHP built-in function, in conjunction with the implementation of the "__set()", "__get()" and "__call()" methods, and explores the native support of object overloading in PHP 5.

They first take a step back and go over the concepts behind the property overloading from the previous part of the series. After being reminded of that (or hearing it for the first time for some), they translate that directly into a method for use on methods. And, with the help of a __call request, they show you how to make it all work together and overload the method call.

1 comment voice your opinion now!
method overloading php4 tutorial part2 __call __get __set method overloading php4 tutorial part2 __call __get __set


blog comments powered by Disqus

Similar Posts

Ed Finkler's Blog: Building a Tumblelog with Gimme Bar and PHP

Jurian Sluiman: Using Zend Framework service managers in your application

Zend Developer Zone: ZendCon Wrapup

Chance Garcia's Blog: MAMP PRO, PECL, SSH2, and OSX CLI (AKA acronym madness)

NetTuts.com: How to Create an Alfred Extension


Community Events





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


opinion introduction podcast community configure refactor developer laravel release series interview framework threedevsandamaybe install unittest testing code list language symfony2

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