<?php class TouteSimple { public function foo(){ $that = $this; $func = function() use ($that){echo 'test '; var_dump($that);}; return $func(); } } $s = new TouteSimple(); $s->foo();
You have javascript disabled. You will not be able to edit any code.