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