Thread: Dynamics
View Single Post
  #5  
Old 12-01-2006, 03:25 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by fowlplay4 View Post
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.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote