Re: [PHP] How to call a static class and method dynamically
Posted by GamblerZG on 04/04/05 17:04
> class MyClass {
> function static_method() {
> echo 'I'm in static_method !';
> }
> }
>
> You can call the function statically using the double colon ( :: )
> operator :
Ahem. Double colon does now works with dynamic names. If I'm not
mistaken, call_user_func(array('class', 'function')) is the only way.