|
You could always assign the variables a certain value (for instance an array of variable statuses)... each position in the array representing each variable with a slightly increasing numeric.
When you get into the function, you can see if the variables have values by checking their length, etc. Add up the elements of the status array to determine which values were set. Based on the value, you will know which variables were set and which execution path to take.
This is kinda like the chmod command in linux... but chances are, you need just basic function overloading, may need to be more specific.
__________________
http://jasonpowers.net
"There are a thousand hacking at the branches of evil to one who is striking at the root."
|