Quote:
Originally Posted by MrOmega
Well when you put it in that view I do.
@fowlplay4:
What do you mean add a second function...
Why can't I just recreate the params array when I call a function?
|
You have complete control over what data you pass to it, instead of checking for how many parameters you pass to a certain function, write a function to take exactly how many parameters you need.
I.e:
PHP Code:
function getDist2(temp.x1, temp.x2) {
// code for just two points here
}