View Single Post
Old 09-11-2010, 07:19 AM  
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
Ok it's possible to do this :

Quote:
$f->bar = function () use ($f) {$f->internal();};
but I need to dynamicaly build my function with create_function (since the body of my function is passed to me as a string) how do I work with the keyword "use" then ?
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote