KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to do something like the following: // assume $f is an arg to the wrapping function $self = $this; $func = function() use($f, $ctx, $self){ $self->remove($func, $ctx); // I want $func to be a reference to this anon function $args = func_get_args(); call_user_func_array($f, $args); }; Is it possible to reference the function assigned to $func from with the same function?
Tags (comma-separated)
Save Edits
Cancel