what happens if you don't know what the number of variables passed to a function will be? The function should be called like the following:
myfunction($var1, $var2, ..., varn$);
where n is the number of variables passed. So both of the following statements would be valid:
myfunction($var1, $var2); //takes 2 variables
myfunction($var1, $var2, $var3); //this time takes 3 variables