Is there a way to get the sibling functions of a function inside of an array?
I have an array of functions, similar to:
$thingy = [
'do_something' => function() {
// call $thingy['do_something_else']()?
},
'do_something_else' => function() {
return 1234;
}
];
Is there a way that I can call do_something_else
from do_something
? In other languages, like javascript, you should be able to use this
or can use the variable name thingy
.