no, it's not possible to do it that way. If you need to return multiple values from a function, your best bet is to return an array or some kind of record structure.
By design, in almost all languages, functions only return a single value. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -----Original Message----- From: sanjay [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 9:11 AM To: [EMAIL PROTECTED] Subject: [PHP] return multiple value from function 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); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php