getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_list_set_dictSet a dictionary value in a list.


int php_getdns_list_set_dict ( int $list , int $index , int $value )

This function sets a dictionary value in a list. The list type is used to manage heterogeneous lists of objects consisting of bindata, dictionaries, lists, and integers.



The previously created list that is to be used with this request.


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.


The dictionary value to be set.

Return Values

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

getdns Functions
PHP Manual