Is it possible to have a function with two returns like this:
function test($testvar) { // Do something return $var1; return $var2; }
Yes, you can use an object :-)
But the simplest way is to return an array:
return array('value1', 'value2', 'value3', '...');