Re: Howto return multidimensional arrays from a PHP module
| From: | Thomas Wentzel | Date: | Mon, 05 Feb 2001 11:49:45 +0000 |
| Subject: | Re: Howto return multidimensional arrays from a PHP module | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38216@lists.php.net to get a copy of this message | ||
Thomas Wentzel wrote:
>
> Hi Søren,
>
> Thank you very much for your answer, but I'm afraid that it isn't that
> usefull to me... I don't have the luxury of using PHP as my PHP module
> is written in C!!
>
> T.
>
> Soeren Staun-Pedersen wrote:
> >
> > 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;