Posted by Ahmed Saad on 11/22/05 15:42
hi all,
how can i call static methods of a class whose name is variable.. something like
<? $className::doSomething(); // throws a parser error ?>
I can do this with reflection by creating a ReflectionMethod object
then invoke()ing it, but is there a better way?
Thanks
-ahmed
Navigation:
[Reply to this message]
|