Re: [PHP] Howto return multidimensional arrays from a PHP module
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; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Howto return multidimensional arrays from a PHP module
Thomas Wentzel wrote: Hi Sren, 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; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Howto return multidimensional arrays from a PHP module
Thomas Wentzel wrote: Hi Sren, 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!! Repost your question to the php-dev list. That's where the people who know this stuff hang out. First, you might like to check the php dev archive as I think I remember this question coming up a number of times in the past. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]