Devin,
You can either declare the variable global within your function, or build a class:
class test {
var $one;
var $two;
var $three;
function test($one = 1, $two = 2, $three = 3) {
$this->one = $one;
$this->two = $two;
$this->three = $three;
}
}
In this example, the function test() is the class constructor and sets the default values of the variables. Those values can be over-ridden by passing values into the class instantiation. The variables are then returned into the classes global scope and can be accessed by any class method using the "$this->var_name" notation. HTH,
Cheers,
Geoff A. Virgo