Re: returning two-dimensional array with Api
| From: | Ignacio Vazquez-Abrams | Date: | Thu, 09 Nov 2000 18:18:14 +0000 |
| Subject: | Re: returning two-dimensional array with Api | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-37601@lists.php.net to get a copy of this message | ||
On Thu, 9 Nov 2000, Frederic Logier wrote:
> Hi,
>
> i want to do a function like array() wich return a two-dimensional array.
>
> I've searched in array.c to understand how does the Api works.
> zend_hash_update returns a one dimensional array and Array() function 'is a
> language construct used to represent literal arrays, and not a regular
> function'...
>
> So how to do this ?
>
Wouldn't you be better off just dealing with nested arrays (i.e.,
Array( Array( ... ) ... ) )?
--
Ignacio Vazquez-Abrams