<?php class Foo { protected $baz = 'foobar'; public function bar() { self::functionName(); $this->functionName(); } public function functionName() { echo $this->baz . "\n"; } } $f = new Foo(); $f->bar();
You have javascript disabled. You will not be able to edit any code.