<?php class c1 { public function fun(){ var_dump('fun'); } } $n = new c1(); $n->fun = function(){ var_dump('222'); }; ($n->fun)(); ($n->anotherFun)();
You have javascript disabled. You will not be able to edit any code.