Ec (2); found the answer in zend.com and provided a set of examples. Download here: Responses returns an array PHP_FUNCTION (array_experiments) {zval * new_element; MAKE_STD_ZVAL (new_element ); array_init (ret script ec (2); script
I found the answer at zend.com and provided a group of examples, download here: http://www.zend.com/apidoc/examples.tar.gz
Returns an array.
PHP_FUNCTION (array_experiments)
{
Zval * new_element;
MAKE_STD_ZVAL (new_element );
Array_init (return_value );
ZVAL_LONG (new_element, 10 );
Zend_hash_index_update (HASH_OF (return_value), 3, (void *) & new_element, sizeof (zval *), NULL );
Add_next_index_long (return_value, 20 );
}
For specific functions, see the zend api in the php manual. However, this part of content has not been translated into Chinese... I can't read Kingsoft, but it's too bad to read English. I hope that the senior man will have nothing to translate... haha