Is it possible to have a function with two returns like this:
function test($testvar) { // Do something return $var1; return $var2; }
Or you can pass by reference:
function byRef($x, &$a, &$b) { $a = 10 * $x; $b = 100 * $x; } $a = 0; $b = 0; byRef(10, $a, $b); echo $a . "\n"; echo $b;
This would output
100 1000