Is it possible to have a function with two returns like this:
function test($testvar) { // Do something return $var1; return $var2; }
Does PHP still use "out parameters"? If so, you can use the syntax to modify one or more of the parameters going in to your function then. You would then be free to use the modified variable after your function returns.