Is it possible to have a function with two returns like this:
function test($testvar) { // Do something return $var1; return $var2; }
Add all variables in an array and then finally return the array.
array
function test($testvar) { // do something return array("var1" => $var1, "var2" => @var2); }
And then
$myTest = test($myTestVar); //$myTest["var1"] and $myTest["var2"] will be usable