Quote:
Originally Posted by Rapidwolve
Not sure but something like this would probobly work:
PHP Code:
function func()
return "Hi";
function onCreated()
{
t = new TStaticVar();
t = this.func;
echo(t);
}
|
Yeah, RW that returned func. So, I'm not sure. This seems to contain a few bugs as it were because it's new. But as far as returning information I had been doing things like.
PHP Code:
function onCreated()
{
this.newObj = function() {
echo("stuff");
};
this.newObj();
}
And I have been trying to, for lack of a better word, reverse engineer that into something like.
PHP Code:
function onCreated()
{
this.newObj = function() {
return (1 + 2);
};
echo(this.newObj());
}
And lol, whaddya know...it works that way, this has to be experiemented on a bit. As it returned the right thing just now. =o