return multiple value from function
| From: | sanjay | Date: | Mon, 29 Apr 2002 14:11:27 +0000 |
| Subject: | return multiple value from function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95154@lists.php.net to get a copy of this message | ||
Hi List,
I am new to php programming and wanted to know if it is possible to return
multiple value from a function like cgi programs.
How can I get the following result using php.
($var1, $var2) = myfunction($a,$b);
function myfunction($c,$d)
{
// code
// code
return ($e,$f);
}