Hi
This is probably a stupid question, but I can't figure it out. I've
been trying to search the PHP site for an answer without luck.
I want to return results in an array from an extension. The array may
or may not be defined. The array may or may not contain values. The
PHP function could
Try this:
/*** array your_ext_func() ***/
ZEND_FUNCTION(your_ext_func)
{
zval *val_ret, *val_str;
char *output;
int ret;
output = (char *)emalloc( 100 );
some code to set output and ret
array_init(return_value);
MAKE_STD_ZVAL(val_ret);