Why is it that I can do this:
$obj= new $classname();
But not this:
$classname::ast aticfunc()
I would like to call a static function when I only have the class name
in a variable and the function name. It seems like the above code
should work, but it doesn't. I get:
Parse error: syntax error, unexpected T_PAAMAYIM_NEKU DOTAYIM
What is the correct syntax to do this please?
Comment