<?php class C { public function __construct($o) { $this->o = $o; } public function forget() { $this->o = null; } } $o = new StdClass; $c = new C($o); $c->forget(); var_dump($o);
You have javascript disabled. You will not be able to edit any code.