Quote:
Originally Posted by borked
|
Close but it's not quite it. The problem am having is more when I declare the dynamic function then when I call it.
Ultimately what I would like to do is something like this :
Quote:
$code = 'print ($f->msg);';
$f->bar = function () use($f) { $code };
|
So the code of the function to be would be contain is $code as a string. But of course this returns an error...