(PECL getdns >= 0.10.0)
php_getdns_list_set_int — Set an integer value in a list.
$list
, int $index
, int $value
)This function sets an integer value in a list. The list type is used to manage heterogeneous lists of objects consisting of bindata, dictionaries, lists, and integers.
list
The previously created list that is to be used with this request.
index
The numeric index (0 based) whose associated value is to be set. If the index exists in the list the value associated with that index is replaced. If the index does not exist in the list a new item is added to the list at the specified index.
value
The integer value to be set.
This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.