LMSouq
php-dev Open

Multiple returns from a function

VI
vincent
1 month ago
3 views
Problem Description
Is it possible to have a function with two returns like this: function test($testvar) { // Do something return $var1; return $var2; } If so, how would I be able to get each return separately?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base