View Single Post
  #869  
Old 01-27-2011, 03:14 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by MrOmega View Post
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.x1temp.x2) {
  
// code for just two points here

__________________
Quote:
Reply With Quote