I'm not sure what the correct term is but here's what I think would be cool to have...
PHP Code:
function onCreated() {
this.testfunc = function () {
return "Hello World";
};
echo(this.testfunc); // should echo "Hello World"
}
However instead it echos: "function_xxxxxxx_yyyy"
Calling the function instead of returning the name would be so much more useful and fun.