Re: function returning array
| From: | Larry E . Ullman | Date: | Mon, 08 Sep 2003 02:30:47 +0000 |
| Subject: | Re: function returning array | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161949@lists.php.net to get a copy of this message | ||
Nothing. But it I run:
function getData() {
etc..
print_r ($theArray);
return $theArray;
}
the data is definitely there.
I think the example in the PHP manual goes something like...
function getData () {
// blah, blah
return array ('value1', 'value2', ...);
}
Then you would call it with
list ($var1, $var2, ...) = getData();
Hope that helps,
Larry