Is there any way I can check if a method is being called statically or on an instantiated object?
class A { function test() { echo isset($this)?'not static':'static'; } } $a = new A(); $a->test(); A::test(); ?>
Edit: beaten to it.