Re: Howto return multidimensional arrays from a PHP module
| From: | Soeren Staun-Pedersen | Date: | Mon, 05 Feb 2001 10:51:27 +0000 |
| Subject: | Re: Howto return multidimensional arrays from a PHP module | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38205@lists.php.net to get a copy of this message | ||
On Mon, 5 Feb 2001, Thomas Wentzel wrote:
> Hi all,
>
> I've been using array_init and add_assoc_xxx to return an array from
> within my PHP module... But how would I go about returning the following
> stucture
$a = array(1,2,3,4);
$b = arrar("foo"=>1,"bar"=>2);
return $a;
would work, as well as
return $b;