next up previous contents
Next: php_array::add_assoc Up: Function Reference Previous: php_array   Contents

php_array::add

#include "php_arr.h"

void 
php_array::add(char *argspec, ...);

Description: Add each value described by argspec and included as subsequent arguments to the php_array at the next available index. This is logically equivalent to taking each value passed in and calling $php_array[] = $value; in PHP.

Errors: It is an error for argspec to be undefined. It is an error for the number of values described in argspec to differ from the number of arguments provided thereafter. It is an error for the types of additional arguments to differ from their description in argspec (see Table 1 on page [*] for details). Any errors during execution may result in fewer values than expected being inserted into the array.



Andrew Bosworth 2008-03-24