<?php class Example { public $a = 1; public function foo() { var_dump($this->a); } public function bar() { self::foo(); } } $ex = new Example; $ex::bar();
You have javascript disabled. You will not be able to edit any code.