<?php class A { public static function foo() { return 'foo'; } } $classname = 'A'; echo $classname::foo();
You have javascript disabled. You will not be able to edit any code.