If I have a PHP class such as this one:
class A
{
public static function Method()
{
return "x";
}
}
I know that I can access this with:
echo A::Method();
But how would I go about creating a function reference to this method? I tried something like this:
$func = "A::Method";
echo $func();
But it gives me a run-time error. So, is this possible in PHP? If so, how? Thanks! :)