Calling a static method on a class known by name?
- by Palantir
Hello!
Is there any way to obtain this effect in a PHP version prior to 5.3?
class A {
public static function x() {print 'ok'; }
}
$className = 'A';
$className::x();
Thanks!
Palantir