quick php for perl coder question
| From: | Thomas Bolioli | Date: | Thu, 11 Sep 2008 19:10:18 +0000 |
| Subject: | quick php for perl coder question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-279913@lists.php.net to get a copy of this message | ||
I want to return an array from a function.
I have this:
return array($found, $username, $email, $nickname);
as my code. I have a bug in the code and I am not sure where yet. Should the above statement with this:
array($vars);
$vars = function($type, $abc, $xyz);
$found = $vars[0];
$username = $vars[1];
$email = $vars[2];
$nickname = $vars[3];
on the other end work? If so, then the bug is somewhere else.
Thanks in advance,
Tom