<?php class A{ static function foo() { if(isset($this)) { return true; } return false; } } $a = new A; var_dump(A::foo()); var_dump($a->foo());
You have javascript disabled. You will not be able to edit any code.