Is it possible to have a function with two returns like this:
function test($testvar) { // Do something return $var1; return $var2; }
The answer is no. When the parser reaches the first return statement, it will direct control back to the calling function - your second return statement will never be executed.