Ahmed, call_user_func(array($className, 'doSomething')); Cheers, David Grant Ahmed Saad wrote: > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php