Hello forums !!
I would like to know how to make the chaining methods compatible in both php4 and php5.
As we know chaining methods works only in php5.
Is there any hacks to make it work in php4 too.
My Chaining method working in PHP5 looks like:
MyClass::getObject()->getObj('obj1')->getObj('obj2')->someMethod();
Any Help/suggestions would be highly appreciated.