Re: Newbie creating extension

From: Date: Tue, 12 Sep 2000 19:43:31 +0000
Subject: Re: Newbie creating extension
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-33104@lists.php.net to get a copy of this message
Well we could maybe do an add_assoc_array() or something like that. Maybe we can make a list of what would be useful to have and decide what should be implemented and what not. Andi At 03:18 PM 9/12/00 -0400, Sterling Hughes wrote:
Example: {
    zval *tmp, *ar;
    array_init(tmp);
    array_init(ar);
    add_assoc_long(tmp, "someval", 32);
    zend_hash_next_index_insert(ar, &tmp, sizeof(zval *), NULL);
} Moral:
    Use the zend_hash_* functions to perform advanced operations.
-Sterling Quick question all, I have succesfully created an extension for PHP and everything seems to work correctly, except I am unsure how to return a multi-dimensional array. I am currently returning a single dimension array fine, but I haven't found any documentation on how to create a multi-dimension array. One would think in the add_index_<whatever> functions that the index argument would allow this. Am I missing something? Please let me know. -=-=-=-=-=-=-=-=-=-=-=-=-=- Jason Woods Structus Technologies, Inc. jwoods@structus.com -- Webmail provided by ISLC http://www.islc.net -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#33104) next »