Quote:
Originally Posted by fowlplay4
Hmm..
PHP Code:
function onCreated() {
temp.func = "onTest";
temp.paramz = {1,2,3};
(@temp.func)(@temp.paramz);
/*
(@temp.paramz) - returns "1,2,3" not {1,2,3}
I see that "1,2,3" would be a string right?
Would there be a way I could get it recognized as, without using that method Im currently using?
onText(1,2,3); Is what I would like to acheive.
If no one gets what Im saying, thanks anyway.
*/
}
|
You're only passing one argument...
(@temp.func)(1,2,3);
It's a variable function
name, and as such the parameters are sent just like they would in any other function.