chaining method compatibility problem ??
Posted: Fri Jan 02, 2009 11:02 pm
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:
Any Help/suggestions would be highly appreciated.
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:
Code: Select all
MyClass::getObject()->getObj('obj1')->getObj('obj2')->someMethod();