getdns Functions
PHP Manual

php_getdns_list_set_int

(PECL getdns >= 0.10.0)

php_getdns_list_set_intSet an integer value in a list.

Description

int php_getdns_list_set_int ( int $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.

Parameters

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.

Return Values

This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.


getdns Functions
PHP Manual