<?php class Foo { private $a = 'b'; public function bar() { $this->baz($this); } protected function baz(Foo $foo) { var_dump($foo->a); } } $foo = new Foo; $foo->bar();
You have javascript disabled. You will not be able to edit any code.