<?php class Foo { private $bar = true; public static function bar() { return isset($this->bar) ? 'x' : 'y'; } } var_dump(Foo::bar()); var_dump((new Foo)->bar());
You have javascript disabled. You will not be able to edit any code.