<?php function test($obj){ static $c; $c = $c ? $c : function(){ return 'baz'; }; $obj->store = $c; } test($x = new stdclass); test($y = new stdclass); var_dump($x->store === $y->store);
You have javascript disabled. You will not be able to edit any code.