Workaround to the following? This is something I'd never considered, had assumed would work, yet unfortunately does not:
class Foo{
public static function bar(){
echo "abc";
}
}
$var = (object)'Foo';
$var::bar();
Bottom line, I need to be able to use a varvar to statically call a class function bar.
The error unfortunately, is:
arse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in
Which is a pretty neat diagnosis!
Thanks.
Alex