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