<?php class A { public $test = "test"; public function test() { $this->test = $this; return $this->test; } public function test2() { echo "A"; } } $a = new A; $a->test()->test2();
You have javascript disabled. You will not be able to edit any code.