I'd like to do a call :
$MyClass::$MyStaticFunction($param);
where $MyClass, $MyStaticFunction, $param are given parameters.
I tried with eval without success
eval($MyClass.'::'.$MyStaticFunction.'('.$param.');');
How can I do this call ?
Thanks
Moderator: General Moderators
I think the way to call a static function should be $MyClass::MyStaticFunction($param);. Without the '$'.pppswing wrote:Hi,
I'd like to do a call :
$MyClass::$MyStaticFunction($param);
where $MyClass, $MyStaticFunction, $param are given parameters.
I tried with eval without success
eval($MyClass.'::'.$MyStaticFunction.'('.$param.');');
How can I do this call ?
Thanks